From 3e3646b816670e398bd11587b4eddb841ef165eb Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Mon, 25 Sep 2006 08:41:07 +0000 Subject: [PATCH] * another rename --- pisi/cli/commands.py | 2 +- pisi/index.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pisi/cli/commands.py b/pisi/cli/commands.py index e14e8b38..d84b9d02 100644 --- a/pisi/cli/commands.py +++ b/pisi/cli/commands.py @@ -893,7 +893,7 @@ everything in a single index file. group = OptionGroup(self.parser, _("index options")) - group.add_option("-a", "--absolute-uris", action="store_true", + group.add_option("-a", "--absolute-urls", action="store_true", default=False, help=_("store absolute links for indexed files.")) group.add_option("-o", "--output", action="store", diff --git a/pisi/index.py b/pisi/index.py index dd3c93c7..f0a304fc 100644 --- a/pisi/index.py +++ b/pisi/index.py @@ -119,8 +119,7 @@ class Index(XmlFile): md = metadata.MetaData() md.read(os.path.join(ctx.config.install_dir(), ctx.const.metadata_xml)) md.package.packageSize = os.path.getsize(path) - if ctx.config.options and ctx.config.options.absolute_uris: - # FIXME: the name "absolute_uris" does not seem to fit below :/ + if ctx.config.options and ctx.config.options.absolute_urls: md.package.packageURI = os.path.realpath(path) else: # create relative path by default # TODO: in the future well do all of this with purl/pfile/&helpers @@ -161,7 +160,7 @@ class Index(XmlFile): #ctx.ui.error(str(Error(*errs))) builder.fetch_component() sf = builder.spec - if ctx.config.options and ctx.config.options.absolute_uris: + if ctx.config.options and ctx.config.options.absolute_urls: sf.source.sourceURI = os.path.realpath(path) else: # create relative path by default sf.source.sourceURI = util.removepathprefix(repo_uri, path)