summaryrefslogtreecommitdiffstats
path: root/pym/repoman/utilities.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-04-02 10:22:38 -0700
committerZac Medico <zmedico@gentoo.org>2010-04-02 10:22:38 -0700
commit7a33618e8189384861b412176a3ddbef240b6777 (patch)
tree3c13576422a40d36d8f52e2c8d660c4565019b70 /pym/repoman/utilities.py
parent0840af0260786b6d9d5b5d03eab269c6c545e722 (diff)
downloadportage-7a33618e8189384861b412176a3ddbef240b6777.tar.gz
portage-7a33618e8189384861b412176a3ddbef240b6777.tar.bz2
portage-7a33618e8189384861b412176a3ddbef240b6777.zip
Handle missing $PORTDIR/metadata/herds.xml. Thanks to Arfrever for reporting.
Diffstat (limited to 'pym/repoman/utilities.py')
-rw-r--r--pym/repoman/utilities.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py
index cd7f5ea87..719e910d7 100644
--- a/pym/repoman/utilities.py
+++ b/pym/repoman/utilities.py
@@ -176,7 +176,8 @@ def check_metadata(metadata_xml_content, herd_base):
except (ExpatError, ) as e:
raise exception.ParseError("metadata.xml: " + str(e))
- check_metadata_herds(xml_tree, herd_base)
+ if herd_base is not None:
+ check_metadata_herds(xml_tree, herd_base)
def FindPackagesToScan(settings, startdir, reposplit):