From: Ian Jackson Date: Sun, 22 Mar 2015 15:28:58 +0000 (+0000) Subject: Debian policy: Merge remaining relevant comments into policy script X-Git-Tag: debian/0.30~241 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=f46909c2a0e4b6c3e038b4ff92909060a3cc1bee;ds=inline Debian policy: Merge remaining relevant comments into policy script --- diff --git a/infra/README.Debian-NEW b/infra/README.Debian-NEW deleted file mode 100644 index da7fd59e..00000000 --- a/infra/README.Debian-NEW +++ /dev/null @@ -1,35 +0,0 @@ - -====== - -policy hooks: - - - cron check thing - implement `(always)' above - - in dispatch, on check or push, during package selection - implement `(always)' above - - - in dgit-repos-server, run policy hook after parsing tag - but before ff check; passing policy hook the deliberatelies - policy hook may: - - if appropriate blow away existing repo, copy old taints and add taints - - check taints - - fail if unused deliberatelies - - indicate to parent whether to disregard ff check - - remove taints which were overridden - -on push encode --deliberately in tag as lines - [dgit --deliberately-blah] - -====== - -Want some invariants or properties - - - .dsc of published dgit package will have corresponding publicly - visible dgit-repo (soon) - - - when a new package is rejected we help maintainer avoid - accidentally including bad objects in published dgit history - - - .dsc of NEW dgit package has corresponding dgit-repo but not - publicly readable - diff --git a/infra/dgit-repos-policy-debian b/infra/dgit-repos-policy-debian index d5c4d0db..8aeff676 100755 --- a/infra/dgit-repos-policy-debian +++ b/infra/dgit-repos-policy-debian @@ -60,6 +60,16 @@ our %deliberately; # still be being uploaded. (We record this using the timestamp of the # package's git repo directory.) +# We aim for the following invariants and properties: +# +# - .dsc of published dgit package will have corresponding publicly +# visible dgit-repo (soon) +# +# - when a new package is rejected we help maintainer avoid +# accidentally including bad objects in published dgit history +# +# - .dsc of NEW dgit package has corresponding dgit-repo but not +# publicly readable sub poldb_setup () { $poldbh ||= DBI->connect($policydb,'','', {