Note: Due to technical difficulties, the Archives are currently not up to date.
GMANE provides an alternative service for most mailing lists. c.f. bug 424647
List Archive: gentoo-commits
antarus 08/08/04 19:29:25
Modified: use_desc_gen.py
Log:
skip categories that do not exist in the repo but exist in categories for jmbsvicetto
Revision Changes Path
1.6 users/antarus/projects/infra/use_desc_gen.py
file : http://sources.gentoo.org/viewcvs.py/gentoo/users/antarus/projects/infra/use_desc_gen.py?rev=1.6&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/users/antarus/projects/infra/use_desc_gen.py?rev=1.6&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/users/antarus/projects/infra/use_desc_gen.py?r1=1.5&r2=1.6
Index: use_desc_gen.py
===================================================================
RCS file: /var/cvsroot/gentoo/users/antarus/projects/infra/use_desc_gen.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- use_desc_gen.py 28 Jul 2008 23:15:04 -0000 1.5
+++ use_desc_gen.py 4 Aug 2008 19:29:25 -0000 1.6
@@ -17,6 +17,7 @@
__author__ = "Alec Warner <antarus@g.o>"
+import errno
import logging
import optparse
import os
@@ -51,7 +52,12 @@
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)
|
|