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: