[patch] create dirs

Ralf Corsepius rc040203 at freenet.de
Wed Jun 14 09:00:06 PDT 2006


On Wed, 2006-06-14 at 18:39 +0300, Panu Matilainen wrote:
> On Wed, 2006-06-14 at 11:38 +0200, Ralf Corsepius wrote:
> > Hi,
> > 
> > the patch below changes the configuration to create the systems dirs apt
> > presumes to exist based on its configurations.
> > 
> > I presume this patch to be a bit controversial, be cause several of
> > these dirs currently can be changed at run-time, while this approach
> > assumes them to be hard-coded at configuration time.
> 
> No controversy here. This is one of those little things that has annoyed
> me for ages (but haven't gotten around to do anything about it) :
> "bootstrapping" apt from sources is way too cumbersome at the moment
> when you have to create all those directories manually. Those playing
> with oddball setups can create the directories by themselves, this
> serves the majority of users very well I think.
> 
> This doesn't yet create a fully working setup though, cache and statedir
> need more directories:
> /var/cache/apt/
>                archives/
>                         partial/
>                genpkglist/
>                gensrclist/
> /var/lib/apt/
>              lists/
>                    partial/
>              
> I extended your patch a bit and added those.
Now we the controversy.

The idea behind what I am doing, is to hard-code the the "root" dirs and
let the others be created at run-time.

Background: I had found the /var/cache/apt/archives hierarchy to be
non-functional, when sharing caches across a network and when
"dist-upgrading" (Consider using sharing /var/cache/apt between an FC4
and an FC5 machine).

Therefore, I using separate "per-dist" subdirs
/var/cache/apt/fedora/4/
/var/cache/apt/fedora/5/
[now extend this to different archs]

>  Also I removed
> the /etc/apt/gpg directory because that's not an "official" directory at
> all, it's only used by the optional gpg-import script from contrib/ and
> it's not a very good idea anyway (both the location and the way
> gpg-import works, need to replace that with something saner some day). 
Hmm, my plan was to make it "official" and to install these scripts by
default - Remember, we don't care much about apt anymore, it's us to
specify, what's official. 

While we're at it: What about the plethora of lua scripts in apt's
source-tree.

IMO, we should either drop them, or use them. ATM, none of them is used,
they all are more or less semi-functional gradually rottening dead code.

Ralf
 




More information about the Apt-Rpm mailing list