[csw-devel] SF.net SVN: gar:[21016] csw/mgar/gar/v2/lib/python/pkgdb.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Tue May 7 00:57:48 CEST 2013
Revision: 21016
http://gar.svn.sourceforge.net/gar/?rev=21016&view=rev
Author: wahwah
Date: 2013-05-06 22:57:48 +0000 (Mon, 06 May 2013)
Log Message:
-----------
pkgdb: Use default raise, preserving the origin
If "raise e" is used, the original place where the exception was raised, is
lost.
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-05-06 22:57:37 UTC (rev 21015)
+++ csw/mgar/gar/v2/lib/python/pkgdb.py 2013-05-06 22:57:48 UTC (rev 21016)
@@ -466,12 +466,9 @@
"csw-upload-pkg?")
sys.exit(1)
else:
- raise e
- for stats in stats_list:
- logging.debug(
- "Importing %s, %s",
- stats["basic_stats"]["md5_sum"],
- stats["basic_stats"]["pkg_basename"])
+ raise
+ for md5_sum in md5_list:
+ logging.debug("Importing %s", md5_sum)
try:
package_stats.PackageStats.ImportPkg(stats, options.replace)
except sqlobject.dberrors.OperationalError, e:
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