self.checkts = False
self.split = False
self.update = False
+ self.update_md_path = None
self.skip_stat = False
self.database = False
self.outputdir = None
'verbose' : self.conf.verbose,
'pkgdir' : os.path.normpath(self.package_dir)
}
+
if self.conf.skip_stat:
opts['do_stat'] = False
+ if self.conf.update_md_path:
+ old_repo_path = os.path.normpath(self.conf.update_md_path)
+ else:
+ old_repo_path = self.conf.outputdir
+
#and scan the old repo
- self.oldData = readMetadata.MetadataIndex(self.conf.outputdir, opts)
+ self.oldData = readMetadata.MetadataIndex(old_repo_path, opts)
def _setup_grabber(self):
if not hasattr(self, '_grabber'):
# help="Only make the sqlite databases - does not work with --update, yet")
parser.add_option("--update", default=False, action="store_true",
help="use the existing repodata to speed up creation of new")
+ parser.add_option("--update-md-path", default=None, dest='update_md_path',
+ help="use the existing repodata for --update from this path")
parser.add_option("--skip-stat", dest='skip_stat', default=False, action="store_true",
help="skip the stat() call on a --update, assumes if the file" \
"name is the same then the file is still the same" \