index: Print package names on the same line during source indexing

This commit is contained in:
Ozan Çağlayan
2011-06-07 06:09:44 +00:00
parent d968b3896a
commit 9cdcd7b48e
+4 -6
View File
@@ -260,19 +260,17 @@ def add_distro(path):
def add_spec(params): def add_spec(params):
try: try:
path , repo_uri = params path, repo_uri = params
ctx.ui.info(_('Adding %s to source index') % path) ctx.ui.info("\r%-80.80s" % (_('Adding %s to source index') %
path), noln = True)
#TODO: may use try/except to handle this #TODO: may use try/except to handle this
builder = pisi.operations.build.Builder(path) builder = pisi.operations.build.Builder(path)
#ctx.ui.error(_('SpecFile in %s is corrupt, skipping...') % path)
#ctx.ui.error(str(Error(*errs)))
builder.fetch_component() builder.fetch_component()
sf = builder.spec sf = builder.spec
if ctx.config.options and ctx.config.options.absolute_urls: if ctx.config.options and ctx.config.options.absolute_urls:
sf.source.sourceURI = os.path.realpath(path) sf.source.sourceURI = os.path.realpath(path)
else: # create relative path by default else:
sf.source.sourceURI = util.removepathprefix(repo_uri, path) sf.source.sourceURI = util.removepathprefix(repo_uri, path)
# check component
return sf return sf
except KeyboardInterrupt: except KeyboardInterrupt: