r12124 - /tools/snapshots/scripts/snapshot-package
kilian at users.alioth.debian.org
kilian at users.alioth.debian.org
Sat Jul 28 15:37:42 UTC 2007
Author: kilian
Date: Sat Jul 28 15:37:42 2007
New Revision: 12124
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=12124
Log:
only remove tarball if get-orig-source was run and actually produced a file.
Modified:
tools/snapshots/scripts/snapshot-package
Modified: tools/snapshots/scripts/snapshot-package
URL: http://svn.debian.org/wsvn/pkg-gnome/tools/snapshots/scripts/snapshot-package?rev=12124&op=diff
==============================================================================
--- tools/snapshots/scripts/snapshot-package (original)
+++ tools/snapshots/scripts/snapshot-package Sat Jul 28 15:37:42 2007
@@ -251,7 +251,8 @@
else:
###print "I: Running get-orig-source..."
if spawnv_chdir(os.P_WAIT, "debian/rules", ['debian/rules', 'get-orig-source'], checkout_dir):
- os.unlink(base + '/tarballs/' + package_orig)
+ if os.path.isfile(base + "/tarballs/" + package_orig):
+ os.unlink(base + '/tarballs/' + package_orig)
uploadsource = True
#print "Checking tarball %s ..." % ('../tarballs/' + package_orig)
if not os.path.isfile(base + "/tarballs/" + package_orig):
More information about the pkg-gnome-commits
mailing list