* fix: make --skip-sources work
This commit is contained in:
+2
-1
@@ -293,7 +293,8 @@ def check(package):
|
|||||||
ctx.ui.info("OK", False)
|
ctx.ui.info("OK", False)
|
||||||
return corrupt
|
return corrupt
|
||||||
|
|
||||||
def index(dirs, output = 'pisi-index.xml', skip_sources=False):
|
def index(dirs=None, output = 'pisi-index.xml', skip_sources=False):
|
||||||
|
"""accumulate PISI XML files in a directory"""
|
||||||
index = Index()
|
index = Index()
|
||||||
if not dirs:
|
if not dirs:
|
||||||
dirs = ['.']
|
dirs = ['.']
|
||||||
|
|||||||
@@ -732,10 +732,10 @@ source and binary packages.
|
|||||||
self.init()
|
self.init()
|
||||||
from pisi.api import index
|
from pisi.api import index
|
||||||
if len(self.args)>0:
|
if len(self.args)>0:
|
||||||
index(self.args, ctx.get_option('output'))
|
index(self.args, ctx.get_option('output'), skip_sources = ctx.get_option('skip_sources'))
|
||||||
elif len(self.args)==0:
|
elif len(self.args)==0:
|
||||||
ctx.ui.info(_('Indexing current directory.'))
|
ctx.ui.info(_('Indexing current directory.'))
|
||||||
index('.', ctx.get_option('output'), skip_sources = ctx.get_option('skip_sources'))
|
index(['.'], ctx.get_option('output'), skip_sources = ctx.get_option('skip_sources'))
|
||||||
self.finalize()
|
self.finalize()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user