Templates "/srv/backports-master.debian.org/dak/templates/";
PoolRoot "pool/";
Lists "/srv/backports-master.debian.org/database/dists/";
+ Cache "/srv/backports-master.debian.org/database/";
Log "/srv/backports-master.debian.org/log/";
Lock "/srv/backports-master.debian.org/lock";
Morgue "/srv/backports-master.debian.org/morgue/";
Templates "/srv/ftp-master.debian.org/dak/templates/";
PoolRoot "pool/";
Lists "/srv/ftp-master.debian.org/database/dists/";
+ Cache "/srv/ftp-master.debian.org/database/";
Log "/srv/ftp-master.debian.org/log/";
Lock "/srv/ftp-master.debian.org/lock";
Morgue "/srv/ftp-master.debian.org/morgue/";
Dir
{
ArchiveDir "%(archivepath)s";
- OverrideDir "/srv/backports-master.debian.org/scripts/override/";
- CacheDir "/srv/backports-master.debian.org/database/";
+ OverrideDir "%(overridedir)s";
+ CacheDir "%(cachedir)s";
};
Default
os.write(fl_fd, '%s\n' % n.fullpath)
os.close(fl_fd)
+ cnf = Config()
+
# Write minimal apt.conf
# TODO: Remove hardcoding from template
(ac_fd, ac_name) = mkstemp()
os.write(ac_fd, MINIMAL_APT_CONF % {'archivepath': self.path,
- 'filelist': fl_name})
+ 'filelist': fl_name,
+ 'cachedir': cnf["Dir::Cache"],
+ 'overridedir': cnf["Dir::Override"],
+ })
os.close(ac_fd)
# Run apt-ftparchive generate
# Sign if necessary
if self.signingkey:
- cnf = Config()
keyring = "--secret-keyring \"%s\"" % cnf["Dinstall::SigningKeyring"]
if cnf.has_key("Dinstall::SigningPubKeyring"):
keyring += " --keyring \"%s\"" % cnf["Dinstall::SigningPubKeyring"]