[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#3237: dchanges is not y/-/_/ package-name aware



Package: dchanges
Version: 3.3

Here is a fix:

--- dchanges.old        Fri Jun  7 00:22:38 1996
+++ dchanges    Fri Jun  7 00:26:05 1996
@@ -375,21 +375,22 @@
             # check filename matches contents
             FN=`basename "${DEB}"`
-            if [ "$FN" != "${T_BINARY}-${T_VERSION}.${T_ARCH}.deb" ]
+            TY_BINARY=`echo ${T_BINARY} | sed -e 'y/-/_/'`
+            if [ "$FN" != "${TY_BINARY}-${T_VERSION}.${T_ARCH}.deb" ]
             then
               # special case for i386 arch
               if [ "$T_ARCH" = "i386" ]
               then
-                if [ "$FN" != "${T_BINARY}.${T_VERSION}.deb" ]
+                if [ "$FN" != "${TY_BINARY}.${T_VERSION}.deb" ]
                 then
                   stderr "ERROR: Deb filename dosn't match contents: $FN"
-                  error  "       expected ${T_BINARY}-${T_VERSION}.${T_ARCH}.deb"
+                  error  "       expected ${TY_BINARY}-${T_VERSION}.${T_ARCH}.deb"
                 else
                   warning "WARNING: missing ARCHITECTURE component in file name: $FN"
                 fi
               else
                 stderr "ERROR: Deb filename dosn't match contents: $FN"
-                error  "       expected ${T_BINARY}-${T_VERSION}.${T_ARCH}.deb"
+                error  "       expected ${TY_BINARY}-${T_VERSION}.${T_ARCH}.deb"
               fi
             else
               echo "Deb file ok: $FN"


Reply to: