Skip the Cygwin package (.bz2) file when searching for the input (.gz) file.
authorDavid Levine <levinedl@acm.org>
Wed, 9 May 2012 03:19:29 +0000 (22:19 -0500)
committerDavid Levine <levinedl@acm.org>
Wed, 9 May 2012 03:19:29 +0000 (22:19 -0500)
SPECS/build-nmh-cygwin

index e7ce976..47bcdd9 100755 (executable)
@@ -71,9 +71,11 @@ export FULLPKG=${SHORTPKG}${REL}
 export src_orig_pkg_name=
 if [ -e "${src_orig_pkg_name}" ] ; then
   export opt_decomp=? # Make sure tar punts if unpack() is not redefined
-elif [ -e ${BASEPKG}.tar.bz2 ] ; then
-  export opt_decomp=j
-  export src_orig_pkg_name=${BASEPKG}.tar.bz2
+# Change from generic-build-script: ${BASEPKG}.tar.bz2 is an output of
+#  this script, so don't trip over it on a rerun.
+# elif [ -e ${BASEPKG}.tar.bz2 ] ; then
+#   export opt_decomp=j
+#   export src_orig_pkg_name=${BASEPKG}.tar.bz2
 elif [ -e ${BASEPKG}.tar.gz ] ; then
   export opt_decomp=z
   export src_orig_pkg_name=${BASEPKG}.tar.gz