From 1aaee90ab71fd58bc7d4a6e9646fdc7dfffe1f0f Mon Sep 17 00:00:00 2001 From: volpino Date: Fri, 20 Jul 2012 14:15:28 +0200 Subject: [PATCH] euscanwww: take herds.xml path as an argument Signed-off-by: volpino --- euscanwww/djeuscan/processing/scan/scan_metadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/euscanwww/djeuscan/processing/scan/scan_metadata.py b/euscanwww/djeuscan/processing/scan/scan_metadata.py index ed7e4f5..f9e5e86 100644 --- a/euscanwww/djeuscan/processing/scan/scan_metadata.py +++ b/euscanwww/djeuscan/processing/scan/scan_metadata.py @@ -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: