[csw-devel] SF.net SVN: gar:[10900] csw/mgar/gar/v2/lib/python/checkpkg.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Thu Sep 2 12:13:43 CEST 2010
Revision: 10900
http://gar.svn.sourceforge.net/gar/?rev=10900&view=rev
Author: wahwah
Date: 2010-09-02 10:13:43 +0000 (Thu, 02 Sep 2010)
Log Message:
-----------
mGAR v2: checkpkg, deal with nonstandard architectures in a nicer way.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/checkpkg.py
Modified: csw/mgar/gar/v2/lib/python/checkpkg.py
===================================================================
--- csw/mgar/gar/v2/lib/python/checkpkg.py 2010-09-02 09:56:40 UTC (rev 10899)
+++ csw/mgar/gar/v2/lib/python/checkpkg.py 2010-09-02 10:13:43 UTC (rev 10900)
@@ -934,7 +934,9 @@
def GetCommonPaths(self, arch):
"""Returns a list of paths for architecture, from gar/etc/commondirs*."""
# TODO: If this was cached, it could save a significant amount of time.
- assert arch in ('i386', 'sparc', 'all'), "Wrong arch: %s" % repr(arch)
+ if arch not in ('i386', 'sparc', 'all'):
+ logging.warn("Wrong arch: %s", repr(arch))
+ return []
if arch == 'all':
archs = ('i386', 'sparc')
else:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list