Kaydet (Commit) 49e62e3a authored tarafından Eray Özkural's avatar Eray Özkural

* cleanup, doc

üst 1a6655d0
...@@ -437,6 +437,8 @@ Usage: emerge <sourcename> ... ...@@ -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
......
...@@ -158,11 +158,8 @@ class Index(XmlFile): ...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment