index: Print package names on the same line during source indexing
This commit is contained in:
+4
-6
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user