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

Re: Bug#93612: Support for new archive structure



On Sun, 15 Apr 2001, Anthony Towns wrote:

> Having random insecure files, however tempting they may look, shouldn't
> stop a user from at least knowing whether they're using something straight
> from Debian or not.

I would prefer that instructions be as simple as possible to minimize
errors. I want to be able to say: 'When using a good CD apt-cdrom will say
"something something" and nothing else'

I don't want to start saying: "Unless, you have a CD with a special woody
area for compatibility, then you must ingore certain output,
re-double-check other output and generally do a lot of extra work, or
maybe edit a file or two.." 

> Saying something like:

How did we go 'works with no problems' to 'needs a complicated release
note' ? 

Its not entirely accurate either, you need to re-run apt-cdrom after
upgrading if you don't ugprade it first so it can read the new style
release files.. This may not be strictly necessary if the old style files
are maintained though.. 


Anyhow, if it is absolutely essential to have the woody/woody-secured thing, 
then do exactly the following:
  1) Make the empty file dists/woody/aptignr 
     - This tells apt-cdrom that the CD is foobar'd below this directory
       and it should just ignore it.
  2) In dists/woody-secured/
       put Release, Release.gpg, and files.list (.gz ?)
  3) In dists/woody-secured/.. put the normal package files.
[If you forget step #1 new apt-cdrom will likely refuse to use the disc
 without some serious prodding..]

The format of files.list should be 1 line per file listing the entire
contents of the CD relative to it's 'root' (the same place Filename:
fields are relative to) this should include all .debs, source items, boot
floppies, etc. Everything referenced directly, or indirectly from the 
Release file. Just file names.

APT in 'partial' mode will fetch and use the files.list file to figure out
what to ignore, etc. Compress if you want to be able to mount CDs and use
them over HTTP. 

Now, when everyone gets bored of the 'woody' dir we can tank it and use a
nice sane layout..

A further refinement would be to use the files.list file to fingerprint
the CD and pre-load the file listings from all CD's in the related set.
That would need another file that mapped readable names to file.list files.. 
Each disk would have a complete untouched copy of
ftp.d.o/debian/dists and a bunch of files.list files which boil down to
the output of find -type f.. Hard to screw up..

Mmmm.

Jason



Reply to: