Gentoo Logo
Gentoo Spaceship




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
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Alec Warner (antarus)" <antarus@g.o>
Subject: gentoo commit in users/antarus/projects/infra: use_desc_gen.py
Date: Mon, 04 Aug 2008 19:29:25 +0000
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)
 





Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo commit in users/antarus/projects/infra: use_desc_gen.py
Next by thread:
gentoo commit in users/antarus/projects/infra: use_desc_gen.py
Previous by date:
gentoo-x86 commit in net-analyzer/fprobe: ChangeLog metadata.xml
Next by date:
gentoo commit in xml/htdocs/doc/zh_cn: java.xml


Updated May 19, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.