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

From: Guy Maor <[email-masked]>
Date: Fri, 7 Jun 1996 00:28:54 -0500 (CDT)

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"

---

From: Ian Jackson <[email-masked]>
Date: Mon, 10 Jun 96 02:21 BST

> Version: 3.3

This transformation on package filenames has been abandoned; instead
we're using _ as the delimiter.

> Here is a fix:
[ deleted ]

dchanges will have to be changed to use the new notation.

Ian.