summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2008-08-04 19:29:25 +0000
committerAlec Warner <antarus@gentoo.org>2008-08-04 19:29:25 +0000
commit5873df6f9ea225ba7c41c8b16e63a3e8e08a03e4 (patch)
tree9207c089033bda668fbb958358b3456c59addecf /users
parentsync to 1.13, still not proofed (diff)
downloadgentoo-5873df6f9ea225ba7c41c8b16e63a3e8e08a03e4.tar.gz
gentoo-5873df6f9ea225ba7c41c8b16e63a3e8e08a03e4.tar.bz2
gentoo-5873df6f9ea225ba7c41c8b16e63a3e8e08a03e4.zip
skip categories that do not exist in the repo but exist in categories for jmbsvicetto
Diffstat (limited to 'users')
-rw-r--r--users/antarus/projects/infra/use_desc_gen.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/users/antarus/projects/infra/use_desc_gen.py b/users/antarus/projects/infra/use_desc_gen.py
index 8313d6f756..883596f008 100644
--- a/users/antarus/projects/infra/use_desc_gen.py
+++ b/users/antarus/projects/infra/use_desc_gen.py
@@ -17,6 +17,7 @@ rules; see _GetTextFromNode for the nasty details.
__author__ = "Alec Warner <antarus@gentoo.org>"
+import errno
import logging
import optparse
import os
@@ -51,7 +52,12 @@ def FindMetadataFiles(repo_path, category_path, output=sys.stdout):
for cat in categories:
cat_path = os.path.join(repo_path, cat)
logging.debug('path to category %s is %s' % (cat, cat_path))
- tmp_pkgs = GetPackages(cat_path)
+ try:
+ tmp_pkgs = GetPackages(cat_path)
+ except OSError, e:
+ if e.errno == errno.ENOENT:
+ logging.error('skipping %s because it was not in %s' % (cat,
+ repo_path))
pkg_paths = [os.path.join(cat_path, pkg) for pkg in tmp_pkgs]
packages.extend(pkg_paths)