[csw-devel] SF.net SVN: gar:[8666] csw/mgar/gar/v2/lib/python/opencsw.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Fri Feb 19 00:30:40 CET 2010
Revision: 8666
http://gar.svn.sourceforge.net/gar/?rev=8666&view=rev
Author: wahwah
Date: 2010-02-18 23:30:36 +0000 (Thu, 18 Feb 2010)
Log Message:
-----------
mGAR v2: checkpkg, fixed a problem with listing binaries in an empty package.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/opencsw.py
Modified: csw/mgar/gar/v2/lib/python/opencsw.py
===================================================================
--- csw/mgar/gar/v2/lib/python/opencsw.py 2010-02-18 23:04:28 UTC (rev 8665)
+++ csw/mgar/gar/v2/lib/python/opencsw.py 2010-02-18 23:30:36 UTC (rev 8666)
@@ -275,7 +275,7 @@
self.release_mgr = u"%s <%s>" % (release_mgr_name, release_mgr_email)
self.release_cc = release_cc
if self.release_cc:
- self.release_cc = unicode(release_cc)
+ self.release_cc = unicode(release_cc)
def FormatMail(self):
body_list = ["The following package files are ready to be released:"]
@@ -730,7 +730,6 @@
rm -rf $EXTRACTDIR
exit 1
fi
-
find $1 -print | xargs file |grep ELF |nawk -F: '{print $1}'
}
@@ -739,6 +738,8 @@
if not self.binaries:
self.CheckPkgpathExists()
files_root = os.path.join(self.directory, "root")
+ if not os.path.exists(files_root):
+ return []
find_tmpl = "find '%s' -print | xargs file | grep ELF | nawk -F: '{print $1}'"
find_proc = subprocess.Popen(find_tmpl % ".",
shell=True,
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