DefaultSuite "lenny-backports";
Reject
{
- NoSourceOnly "true";
ReleaseTransitions "/srv/backports-master.debian.org/hints/transitions.yaml";
};
// If set, only send mails to addresses listed there.
Suite "lenny-backports";
Type "deb";
};
-
- ComponentPosition "prefix"; // Whether the component is prepended or appended to the section name
};
Rm
SuiteSuffix "updates/";
OverrideMaintainer "dak@security.debian.org";
LegacyStableHasNoSections "false";
+ AllowSourceOnlyUploads "true";
};
Process-New
LintianTags "/srv/ftp-master.debian.org/dak/config/debian/lintian.tags";
Reject
{
- NoSourceOnly "true";
ReleaseTransitions "/srv/ftp.debian.org/web/transitions.yaml";
};
// if you setup an own dak repository and want to upload Debian packages you most possibly want
Suite "unstable";
Type "deb";
};
-
- ComponentPosition "prefix"; // Whether the component is prepended or appended to the section name
};
Rm
import apt_pkg
from daklib import utils
-from daklib.dbconn import DBConn, get_or_set_uid
+from daklib.dbconn import DBConn, get_or_set_uid, get_active_keyring_paths
from daklib.regexes import re_gpg_fingerprint_colon, re_user_address, re_user_mails, re_user_name
################################################################################
session = DBConn().session()
if not keyrings:
- keyrings = Cnf.ValueList("Dinstall::GPGKeyring")
+ keyrings = get_active_keyring_paths()
cmd = "gpg --with-colons --no-secmem-warning --no-auto-check-trustdb --no-default-keyring %s --with-fingerprint --list-key %s" \
% (utils.gpg_keyring_args(keyrings),
self.rejects.append("%s: invalid version number '%s'." % (f, version))
# Ensure the architecture of the .deb is one we know about.
- default_suite = cnf.get("Dinstall::DefaultSuite", "Unstable")
+ default_suite = cnf.get("Dinstall::DefaultSuite", "unstable")
architecture = control.Find("Architecture")
upload_suite = self.pkg.changes["distribution"].keys()[0]
if not has_source:
self.rejects.append("no source found and Architecture line in changes mention source.")
- if not has_binaries and cnf.FindB("Dinstall::Reject::NoSourceOnly"):
+ if (not has_binaries) and (not cnf.FindB("Dinstall::AllowSourceOnlyUploads")):
self.rejects.append("source only uploads are not supported.")
###########################################################################
import email as modemail
import subprocess
-from dbconn import DBConn, get_architecture, get_component, get_suite, get_override_type, Keyring, session_wrapper
+from dbconn import DBConn, get_architecture, get_component, get_suite, \
+ get_override_type, Keyring, session_wrapper, \
+ get_active_keyring_paths, get_primary_keyring_path
+from sqlalchemy import desc
from dak_exceptions import *
from gpg import SignedFile
from textutils import fix_maintainer
if not keyserver:
keyserver = Cnf["Dinstall::KeyServer"]
if not keyring:
- keyring = Cnf.ValueList("Dinstall::GPGKeyring")[0]
+ keyring = get_primary_keyring_path()
# Ensure the filename contains no shell meta-characters or other badness
if not re_taint_free.match(filename):
def gpg_keyring_args(keyrings=None):
if not keyrings:
- keyrings = Cnf.ValueList("Dinstall::GPGKeyring")
+ keyrings = get_active_keyring_paths()
return " ".join(["--keyring %s" % x for x in keyrings])
| Dinstall
| {
-| GPGKeyring {
-| "/org/keyring.debian.org/keyrings/debian-keyring.gpg";
-| "/org/keyring.debian.org/keyrings/debian-keyring.pgp";
-| };
| SigningKeyring "/org/ftp.debian.org/s3kr1t/dot-gnupg/secring.gpg";
| SendmailCommand "/usr/sbin/sendmail -odq -oi -t";
| MyEmailAddress "Debian Installer <installer@ftp-master.debian.org>";
| MyAdminAddress "ftpmaster@debian.org";
-| MyHost "debian.org"; // used for generating user@my_host addresses in e.g. manual_reject()
| MyDistribution "Debian";
| BugServer "bugs.debian.org";
| PackagesServer "packages.debian.org";
| BXANotify "false";
| };
-GPGKeyring (required): filenames of the PGP and GnuPG
-keyrings to be used by dak.
-
SigningKeyring (optional): this is the private keyring used by 'dak
generate-releases'.