Bug#2801: dchanges does not put a space after architecture, then bombs (patch)
Package: dchanges
Version: 3.1
Hi,
dchanges was invoked thus:
======================================================================
(cd .. && /usr/bin/dchanges -n ce=CGI_modules-2.75/debian.changes \
arch="all" \
pgp="Manoj Srivastava" \
pri="Low" \
CGI_modules-2.75-1.all.deb \
CGI_modules-2.75-1.diff.gz \
CGI_modules-2.75-1.tar.gz )
Deb file ok: CGI_modules-2.75-1.all.deb
Source file ok: CGI_modules-2.75-1.tar.gz
Source diff file ok: CGI_modules-2.75-1.diff.gz
1 field summary lines missing ":" after field name
ERROR: 1 syntax problems in CGI_modules-2.75-1.changes
make: [dist] Error 1 (ignored)
======================================================================
The changes file produced is:
======================================================================
Date: 24 Apr 96 03:23 UT
Format: 1.4
Distribution: Development
Priority: Low
Maintainer: Manoj Srivastava <srivasta@pilgrim.umass.edu>
Source: CGI_modules
Binary: CGI_modules
Architecture:all source
Version: 2.75-1
Description:
CGI_modules: modules for perl5, for use in writing CGI scripts.
Changes:
* Added the architecture field to the package file name.
* Changed the name so that the package name no longer
contains a hyphen.
Files:
349e26bd63e8a8ec69ef426019124f0c 171591 devel CGI_modules-2.75-1.tar.gz
85489224a5fa4d6afa37d0e05923900a 4462 devel CGI_modules-2.75-1.diff.gz
d117518067763e08b2f587e9a45753da 207202 devel CGI_modules-2.75-1.all.deb
======================================================================
Note that there is no space after the architecture field. (looking at
the source, it would also create a problem with the binary
field). Patch follows:
======================================================================
__> diff -u dchanges.orig dchanges
--- dchanges.orig Tue Apr 23 23:37:23 1996
+++ dchanges Tue Apr 23 23:38:33 1996
@@ -179,8 +179,8 @@
echo "Maintainer: ${MAINTAINER}" >> $OUTFILE
fi
test ! -z "$SOURCE" && echo "Source: ${SOURCE}" >> $OUTFILE
- test ! -z "$BINARY" && echo "Binary:${BINARY}" >> $OUTFILE
- test ! -z "$ARCH" && echo "Architecture:$ARCH" >> $OUTFILE
+ test ! -z "$BINARY" && echo "Binary: ${BINARY}" >> $OUTFILE
+ test ! -z "$ARCH" && echo "Architecture: $ARCH" >> $OUTFILE
test ! -z "$VERSION" && echo "Version: $VERSION" >> $OUTFILE
if [ -z "$DEB_FILES" ]
then
======================================================================
manoj
--
Manoj Srivastava Systems Research Programmer, Project Pilgrim,
Phone: (413) 545-3918 A143B Lederle Graduate Research Center,
Fax: (413) 545-1249 University of Massachusetts, Amherst, MA 01003
<srivasta@pilgrim.umass.edu> <URL:http://www.pilgrim.umass.edu/%7Esrivasta/>
Reply to: