self.directory = None
self.directories = []
self.changelog_limit = None # needs to be an int or None
- self.unique_md_filenames = False
+ self.unique_md_filenames = True
self.additional_metadata = {} # dict of 'type':'filename'
self.revision = str(int(time.time()))
self.content_tags = [] # flat list of strings (like web 2.0 tags)
.IP "\fB\--changelog-limit\fP CHANGELOG_LIMIT"
Only import the last N changelog entries, from each rpm, into the metadata
.IP "\fB\--unique-md-filenames\fP"
-Include the file's checksum in the metadata filename, helps HTTP caching
+Include the file's checksum in the metadata filename, helps HTTP caching (default)
+
+.IP "\fB\--simple-md-filenames\fP"
+Do not include the file's checksum in the metadata filename.
+
.IP "\fB\--distro\fP"
Specify distro tags. Can be specified more than once. Optional syntax specifying a
cpeid(http://cpe.mitre.org/) --distro=cpeid,distrotag
default=None, help="only import the last N changelog entries")
parser.add_option("--unique-md-filenames", dest="unique_md_filenames",
help="include the file's checksum in the filename,helps with proxies",
+ default=True, action="store_true")
+ parser.add_option("--simple-md-filenames", dest="simple_md_filenames",
+ help="do not include the file's checksum in the filename,helps with proxies",
default=False, action="store_true")
parser.add_option("--distro", default=[], action="append",
help="distro tag and optional cpeid: --distro" "'cpeid,textname'")
errorprint(_('--split and --checkts options are mutually exclusive'))
sys.exit(1)
-
+ if opts.simple_md_filenames:
+ opts.unique_md_filenames = False
+
# let's switch over to using the conf object - put all the opts into it
for opt in parser.option_list:
if opt.dest is None: # this is fairly silly