r41138 - /scripts/fix-missing-upstream

ryan52-guest at users.alioth.debian.org ryan52-guest at users.alioth.debian.org
Mon Aug 3 07:21:27 UTC 2009


Author: ryan52-guest
Date: Mon Aug  3 07:21:22 2009
New Revision: 41138

URL: http://svn.debian.org/wsvn/?sc=1&rev=41138
Log:
show the user the current tags and ask them if one of them should be renamed (if a version mangle was added for example)

Modified:
    scripts/fix-missing-upstream

Modified: scripts/fix-missing-upstream
URL: http://svn.debian.org/wsvn/scripts/fix-missing-upstream?rev=41138&op=diff
==============================================================================
--- scripts/fix-missing-upstream (original)
+++ scripts/fix-missing-upstream Mon Aug  3 07:21:22 2009
@@ -1,7 +1,5 @@
 #!/bin/sh
 
-TEMPD=$(mktemp -d)
-trap "/bin/rm -rf \"$TEMPD\"" QUIT INT EXIT
 DOWNLOAD_STRING=$(sed -r -e '/unstable. urgency/ !d' -e 'q' debian/changelog)
 if [ -z "$DOWNLOAD_STRING" ]; then
     DOWNLOAD_STRING=$(head -1 debian/changelog)
@@ -11,6 +9,22 @@
 UPSTREAM_VERSION=$(echo $TARBALL | sed -r 's/^.*_(.*).orig.tar.gz$/\1/')
 PACKAGE=$(echo $TARBALL | sed -r 's/^(.*)_.*$/\1/')
 ORIGDIR=$(pwd)
+
+tag_url=$(svn propget svn-bp:upsTagUrl debian/)
+current_url=$(svn propget svn-bp:upsCurrentUrl debian/)
+echo "Here are the current tags:"
+svn ls $tag_url | sed 's,/$,,'
+echo
+echo "Do any of them look like they should be renamed to ${UPSTREAM_VERSION}?"
+echo -n "Please either choose one or press enter if none look like it: "
+read CHOICE
+if [ -n "$CHOICE" ]; then
+    svn mv -m "Renaming $CHOICE tag to $UPSTREAM_VERSION" $tag_url/$CHOICE $tag_url/$UPSTREAM_VERSION
+    exit 0
+fi
+
+TEMPD=$(mktemp -d)
+trap "/bin/rm -rf \"$TEMPD\"" QUIT INT EXIT
 cd $TEMPD
 apt-get source --download-only $DOWNLOAD_STRING
 if [ ! -f $TARBALL ]; then




More information about the Pkg-perl-cvs-commits mailing list