[DRE-commits] [SCM] pkg-ruby-extras.git branch, master, updated. 8965f8cd4bd5861ed83ba76cecb17362dcb62940

Antonio Terceiro terceiro at debian.org
Sun Jun 9 00:55:29 UTC 2013


The following commit has been merged in the master branch:
commit 8965f8cd4bd5861ed83ba76cecb17362dcb62940
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sat Jun 8 21:54:15 2013 -0300

    update upload script

diff --git a/upload b/upload
index 57b34e6..813540d 100755
--- a/upload
+++ b/upload
@@ -39,9 +39,11 @@ check_package() {
     warning "Lintian reported ERRORS in the package!"
   fi
 
-  banner "Rubygems integration"
-  debc | grep gemspec | sed 's/.*\s//'
-  echo
+  if grep -q Build-Depends:.*gem2deb debian/control; then
+    banner "Rubygems integration"
+    debc | grep gemspec | sed 's/.*\s//'
+    echo
+  fi
 
   banner "Overall package contents"
   debc
@@ -69,4 +71,7 @@ debsign
 # upload
 source=$(dpkg-parsechangelog | awk '{ if ($1 == "Source:") print($2)}')
 version=$(dpkg-parsechangelog | awk  '{ if ($1 == "Version:") { print ($2) } }')
-cd .. && dput ${source}_${version}_amd64.changes
+(cd .. && dput ${source}_${version}_amd64.changes)
+
+# cleanup local directory
+debclean

-- 
pkg-ruby-extras.git



More information about the Pkg-ruby-extras-commits mailing list