[csw-devel] SF.net SVN: gar:[20114] csw/mgar/gar/v2/lib/python/pkgdb.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Sun Jan 13 18:39:44 CET 2013
Revision: 20114
http://gar.svn.sourceforge.net/gar/?rev=20114&view=rev
Author: wahwah
Date: 2013-01-13 17:39:44 +0000 (Sun, 13 Jan 2013)
Log Message:
-----------
pkgdb: we can only run ldd if the platform matches
Since we're running ldd as part of package metadata collection, we cannot
collect sparc metadata in intel and vice versa.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/pkgdb.py
Modified: csw/mgar/gar/v2/lib/python/pkgdb.py
===================================================================
--- csw/mgar/gar/v2/lib/python/pkgdb.py 2013-01-13 17:39:17 UTC (rev 20113)
+++ csw/mgar/gar/v2/lib/python/pkgdb.py 2013-01-13 17:39:44 UTC (rev 20114)
@@ -333,6 +333,12 @@
logging.info(" OS release: %s", repr(osrel))
sqo_osrel = m.OsRelease.selectBy(short_name=osrel).getOne()
for arch in common_constants.PHYSICAL_ARCHITECTURES:
+ if current_host_arch != arch:
+ logging.warning(
+ "Cannot process packages for achitecture %r "
+ "because we're currently running on architecture %r.",
+ arch, current_host_arch)
+ continue
logging.info(" Architecture: %s", repr(arch))
sqo_arch = m.Architecture.selectBy(name=arch).getOne()
catalog_file = self.ComposeCatalogFilePath(base_dir, osrel, arch)
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