[devscripts] 03/07: Revert "uupdate: work around missing debian.tar.xz etc."

Osamu Aoki osamu at moszumanska.debian.org
Sun Sep 13 11:53:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

osamu pushed a commit to branch master
in repository devscripts.

commit b86c212bee6eddc4fc4b92439562e2437fe4ce1c
Author: Osamu Aoki <osamu at debian.org>
Date:   Sun Sep 13 18:16:06 2015 +0900

    Revert "uupdate: work around missing debian.tar.xz etc."
    
    This reverts commit a0477dfa2b9ef3ffba3431f7d5f65d8e65f874fb.
---
 scripts/uupdate.1  |  3 ---
 scripts/uupdate.sh | 50 +++-----------------------------------------------
 2 files changed, 3 insertions(+), 50 deletions(-)

diff --git a/scripts/uupdate.1 b/scripts/uupdate.1
index e795d4d..41c86ca 100644
--- a/scripts/uupdate.1
+++ b/scripts/uupdate.1
@@ -72,9 +72,6 @@ Simply create a symlink when moving a new upstream \fI.tar.gz\fR
 archive to the new \fI<package>_<version>.orig.tar.gz\fR location.
 This is the default behaviour.
 .TP
-.B \-\-verbose
-Give verbose output.
-.TP
 \fB\-\-no\-symlink\fR
 Copy the upstream \fI.tar.gz\fR to the new location instead of making
 a symlink.
diff --git a/scripts/uupdate.sh b/scripts/uupdate.sh
index 30da3fb..759d497 100755
--- a/scripts/uupdate.sh
+++ b/scripts/uupdate.sh
@@ -63,7 +63,6 @@ Options are:
    --no-conf, --noconf
                       Don't read devscripts config files;
                       must be the first option given
-   --verbose          Give verbose output
 
 $PROGNAME [--help|--version]
   show this message or give version information.
@@ -174,7 +173,6 @@ TEMP=$(getopt -s bash -o v:p:r:ubs \
 	--long pristine,no-pristine,nopristine \
 	--long symlink,no-symlink,nosymlink \
 	--long no-conf,noconf \
-	--long verbose \
 	--long help,version -n "$PROGNAME" -- "$@") || (usage >&2; exit 1)
 
 eval set -- $TEMP
@@ -199,8 +197,6 @@ while [ "$1" ]; do
     --no-conf|--noconf)
 	echo "$PROGNAME: $1 is only acceptable as the first command-line option!" >&2
 	exit 1 ;;
-    --verbose)
-	UUPDATE_VERBOSE=yes ;;
     --help) usage; exit 0 ;;
     --version) version; exit 0 ;;
     --)	shift; break ;;
@@ -241,26 +237,12 @@ mustsetvar VERSION "`dpkg-parsechangelog -SVersion`" "source version"
 # Get epoch and upstream version
 eval `echo "$VERSION" | perl -ne '/^(?:(\d+):)?(.*)/; print "SVERSION=$2\nEPOCH=$1\n";'`
 
-if [ -n "$UUPDATE_VERBOSE" ]; then
-    echo "PATCH       = \"$PATCH\" is the name of the patch file" >&2
-    echo "ARCHIVE     = \"$ARCHIVE\" is the name of the next tarball" >&2
-    echo "NEW_VERSION = \"$NEW_VERSION\" is the next pristine tarball version (oversionmangled)" >&2
-    echo "PACKAGE     = \"$PACKAGE\" is in the top of debian/changelog" >&2
-    echo "VERSION     = \"$VERSION\" is in the top of debian/changelog" >&2
-    echo "EPOCH       = \"$EPOCH\" is epoch part of \$VERSION" >&2
-    echo "SVERSION    = \"$SVERSION\" is w/o-epoch part of \$VERSION" >&2
-fi
-
-UVERSION=`expr "$SVERSION" : '\(.*\)-[0-9a-zA-Z.+~]*$'` || true
+UVERSION=`expr "$SVERSION" : '\(.*\)-[0-9a-zA-Z.+~]*$'`
 if [ -z "$UVERSION" ]; then
     echo "$PROGNAME: a native Debian package cannot take upstream updates" >&2
     exit 1
 fi
 
-if [ -n "$UUPDATE_VERBOSE" ]; then
-    echo "UVERSION    = \"$UVERSION\" the upstream portion w/o-epoch of \$VERSION" >&2
-fi
-
 # Save pwd before we goes walkabout
 OPWD=`pwd`
 
@@ -741,24 +723,6 @@ else
 	DIFF="../${PACKAGE}_$SVERSION.debian.tar.xz"
 	DIFFTYPE=tar
 	DIFFUNPACK="tar --xz -xf"
-    else
-	# non-native package with $SVERSION in <version>-<revision> format
-	# missing diff.gz/debian.tar.xz, make it with $OPWD/debian/*
-	# force to update next version to 3.0 (quilt)
-	cd $OPWD
-	if [ ! -d debian ]; then
-	    echo "$PROGNAME: None of *.diff.gz, *.debian.tar.xz, or debian/* found. failed;" >&2
-	    echo "aborting..." >&2
-	    exit 1
-	fi
-	mkdir -p debian/source
-	echo "3.0 (quilt)" > debian/source/format
-	tar --xz -cf ../${PACKAGE}_$SVERSION.debian.tar.xz debian
-	# return back to upstream source
-	cd ../$PACKAGE-$SNEW_VERSION
-	DIFF="../${PACKAGE}_$SVERSION.debian.tar.xz"
-	DIFFTYPE=tar
-	DIFFUNPACK="tar --xz -xf"
     fi
 
     if [ "$DIFFTYPE" = diff ]; then
@@ -861,9 +825,6 @@ else
 	    echo "to debian.upstream/ and use the Debian version" >&2
 	    mv debian debian.upstream
 	fi
-	if [ -n "$UUPDATE_VERBOSE" ]; then
-	    echo "-- Use ${DIFF} to create the new debian/ directory." >&2
-	fi
 	if $DIFFUNPACK $DIFF; then
 	    echo "Unpacking the debian/ directory from version $VERSION worked fine."
 	else
@@ -874,13 +835,8 @@ else
 	echo "$PROGNAME: could not find {diff|debian.tar}.{gz|bz2|lzma|xz} from version $VERSION to apply!" >&2
 	exit 1
     fi
-    if [ -f debian/rules ]; then
-	chmod a+x debian/rules
-    fi
-    if [ -n "$UUPDATE_VERBOSE" ]; then
-	echo "-- New upstream release=$NEW_VERSION-$SUFFIX" >&2
-    fi
-    debchange -v "$NEW_VERSION-$SUFFIX" "New upstream release"
+    chmod a+x debian/rules
+    debchange -v "$NEW_VERSION-$SUFFIX" New upstream release
     echo "Remember: Your current directory is the OLD sourcearchive!"
     echo "Do a \"cd ../$PACKAGE-$SNEW_VERSION\" to see the new package"
 fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list