euscanwww: take herds.xml path as an argument

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino 2012-07-20 14:15:28 +02:00
parent 609eff60ab
commit 1aaee90ab7

View File

@ -130,10 +130,10 @@ class ScanMetadata(object):
)
return maintainer
def populate_herds_and_maintainers(self):
def populate_herds_and_maintainers(self, herds_xml_path=None):
self.logger.info("Populating herds and maintainers from herds.xml...")
herds_xml_path = os.path.join(
herds_xml_path = herds_xml_path or os.path.join(
PORTDB.settings["PORTDIR"], "metadata", "herds.xml"
)
try: