summaryrefslogtreecommitdiff
path: root/infra
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-03-22 15:28:58 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-03-22 15:28:58 +0000
commitf46909c2a0e4b6c3e038b4ff92909060a3cc1bee (patch)
tree3e3f29665e5dda4d8026891c17b3b7f6956050ee /infra
parent66ca07a7e81a379bd745647d239761087c40288c (diff)
Debian policy: Merge remaining relevant comments into policy script
Diffstat (limited to 'infra')
-rw-r--r--infra/README.Debian-NEW35
-rwxr-xr-xinfra/dgit-repos-policy-debian10
2 files changed, 10 insertions, 35 deletions
diff --git a/infra/README.Debian-NEW b/infra/README.Debian-NEW
deleted file mode 100644
index da7fd59..0000000
--- 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 d5c4d0d..8aeff67 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,'','', {