* cleanup, doc
This commit is contained in:
@@ -437,6 +437,8 @@ Usage: emerge <sourcename> ...
|
|||||||
|
|
||||||
You should give the name of a source package to be
|
You should give the name of a source package to be
|
||||||
downloaded from a repository containing sources.
|
downloaded from a repository containing sources.
|
||||||
|
|
||||||
|
You can also give the name of a component.
|
||||||
"""
|
"""
|
||||||
__metaclass__ = autocommand
|
__metaclass__ = autocommand
|
||||||
|
|
||||||
|
|||||||
+1
-4
@@ -158,11 +158,8 @@ class Index(XmlFile):
|
|||||||
def add_spec(self, path, repo_uri):
|
def add_spec(self, path, repo_uri):
|
||||||
import pisi.build
|
import pisi.build
|
||||||
ctx.ui.info(_('Adding %s to source index') % path)
|
ctx.ui.info(_('Adding %s to source index') % path)
|
||||||
|
#TODO: may use try/except to handle this
|
||||||
builder = pisi.build.Builder(path)
|
builder = pisi.build.Builder(path)
|
||||||
#sf = specfile.SpecFile()
|
|
||||||
#sf.read(path)
|
|
||||||
#errs = sf.errors()
|
|
||||||
#if sf.errors():
|
|
||||||
#ctx.ui.error(_('SpecFile in %s is corrupt, skipping...') % path)
|
#ctx.ui.error(_('SpecFile in %s is corrupt, skipping...') % path)
|
||||||
#ctx.ui.error(str(Error(*errs)))
|
#ctx.ui.error(str(Error(*errs)))
|
||||||
builder.fetch_component()
|
builder.fetch_component()
|
||||||
|
|||||||
Reference in New Issue
Block a user