From 49e62e3a1ebd6adc6f0e746e3d93c062ea7c40c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Thu, 8 Jun 2006 15:35:10 +0000 Subject: [PATCH] * cleanup, doc --- pisi/cli/commands.py | 2 ++ pisi/index.py | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pisi/cli/commands.py b/pisi/cli/commands.py index 34cf893d..6ac1992d 100644 --- a/pisi/cli/commands.py +++ b/pisi/cli/commands.py @@ -437,6 +437,8 @@ Usage: emerge ... You should give the name of a source package to be downloaded from a repository containing sources. + +You can also give the name of a component. """ __metaclass__ = autocommand diff --git a/pisi/index.py b/pisi/index.py index 4d3786ff..fc84d842 100644 --- a/pisi/index.py +++ b/pisi/index.py @@ -158,11 +158,8 @@ class Index(XmlFile): def add_spec(self, path, repo_uri): import pisi.build ctx.ui.info(_('Adding %s to source index') % path) + #TODO: may use try/except to handle this 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(str(Error(*errs))) builder.fetch_component()