Debian bug report logs - #972
Packages file corrupt
Package: ftp distribution; Reported by: Jon Rabone <93jkr@eng.cam.ac.uk>; 10 days old.
Message received at debian-bugs:
From cus.cam.ac.uk!iwj10 Tue Jun 13 06:28:06 1995
Return-Path: <iwj10@cus.cam.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
(Smail3.1.28.1 #15) id m0sLW0k-00064uC; Tue, 13 Jun 95 06:28 PDT
Received: from bootes.cus.cam.ac.uk by pixar.com with SMTP id AA14923
(5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Tue, 13 Jun 1995 06:26:38 -0700
Received: by bootes.cus.cam.ac.uk
(Smail-3.1.29.0 #36) id m0sLW0E-000BzoC; Tue, 13 Jun 95 14:27 BST
Received: by chiark
id <m0sLJTj-0000XRZ@chiark.al.cl.cam.ac.uk>
(Debian /\oo/\ Smail3.1.29.1 #29.32); Tue, 13 Jun 95 01:05 BST
Message-Id: <m0sLJTj-0000XRZ@chiark.al.cl.cam.ac.uk>
Date: Tue, 13 Jun 95 01:05 BST
From: iwj10@cus.cam.ac.uk (Ian Jackson)
To: debian-bugs@pixar.com
Subject: Re: Bug#972: Packages file corrupt
Ian Murdock writes ("Re: Bug#972: Packages file corrupt"):
> The mangled Packages file is caused by the extended description
> of "git", I think. It contains a few `^' characters, which are
> the field delimiters for pdpkg, if I rememberly right. This is
> most likely the problem.
>
> Bill, could you change the `^' characters to `CONTROL' or `CTRL'?
How about using ^A (ie, \001, the ASCII SOH character), or ^\ (\034,
28d, Perl's string array index separator character available using
`$;') ?
These are not legal in package control files (which are ASCII text
files), whereas text strings such as `^', `CTRL' and `CONTROL' are.
If the approach of using a control character as the metacharacter is
taken, pdpkg should of course check that the input doesn't contain the
`forbidden' characters before attempting to process it.
The Packages file is an important database - it is vital to the use of
dselect. Perhaps the processing script around pdpkg could attempt a
syntax check on the Packages file before attempting to parse it ?
If this is thought to be a good idea I shall provide such a syntax
check program in the dpkg build tree - it's a trivial call to the C
dpkg database manipulation routines.
Also, could the processing script please be sure to update all the
links to the Packages file ? Atomic mv should clearly be used to
overwrite the old version, so that downloaders never get a partial
copy, but this will of course mean doing the `installation' separately
for each link. Alternatively the copy of the file currently in
/pub/debian could be made a link to the copy in binary.
Ian.
Acknowledgement sent to iwj10@cus.cam.ac.uk (Ian Jackson):
Extra info received and forwarded.
Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#972; Package ftp distribution.
Full text available.
Message received at debian-bugs:
From eng.cam.ac.uk!93jkr Sat Jun 10 12:20:58 1995
Return-Path: <93jkr@eng.cam.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
(Smail3.1.28.1 #15) id m0sKW5a-00064uC; Sat, 10 Jun 95 12:20 PDT
Received: from spanner.eng.cam.ac.uk by pixar.com with SMTP id AA27641
(5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Sat, 10 Jun 1995 12:19:29 -0700
Received: from club.eng.cam.ac.uk
(via 93jkr@club.eng.cam.ac.uk [129.169.16.2])
by spanner.eng.cam.ac.uk with SMTP id UAA24082
for <debian-bugs@pixar.com>; Sat, 10 Jun 1995 20:20:53 +0100
Date: Sat, 10 Jun 1995 20:20:52 +0100 (BST)
From: Jon Rabone <93jkr@eng.cam.ac.uk>
Subject: Packages file corrupt
To: debian-bugs@pixar.com
Message-Id: <Pine.3.89.9506102042.A1354-0100000@club.eng.cam.ac.uk>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Package: ftp distribution
The files
/packages/linux/debian/Packages
/packages/linux/debian/binary/Packages
on src.doc.ic.ac.uk both appear to be corrupt, although in different ways...
I copied the file to /var/lib/dpkg/available and ran dselect, which then
fell over complaining about the file.
Jon.
/-----------J. K. Rabone-----------\ "There's a picture, I like to look at
| http://club.eng.cam.ac.uk/~93jkr | A picture of a beautiful face.
| Email: 93jkr@eng.cam.ac.uk | And I see something, in her eyes
\--------Phone 01223 331553--------/ Sends me to a better place..."
Acknowledgement sent to Jon Rabone <93jkr@eng.cam.ac.uk>:
New bug report received and forwarded.
Full text available.
Report forwarded to debian-devel@pixar.com:
Bug#972; Package ftp distribution.
Full text available.
Ian Jackson /
iwj10@thor.cam.ac.uk,
with the debian-bugs tracking mechanism