chiark / gitweb /
rename adt-suppressions-* to adt-openbugs-*
authorIan Jackson <ian@davenant.greenend.org.uk>
Thu, 25 Oct 2007 17:44:41 +0000 (18:44 +0100)
committerIan Jackson <ian@davenant.greenend.org.uk>
Thu, 25 Oct 2007 17:44:41 +0000 (18:44 +0100)
.bzrignore
debian/changelog
hosts/chinstrap/update-suppressions
hosts/magrathea/cfg
runner/adt-openbugs-fetch-debbugs [moved from runner/adt-suppressions-fetch-debbugs with 87% similarity]
runner/adt-openbugs-update [new file with mode: 0755]
runner/adt-suppressions-update [deleted file]

index a734e2e208c0ff690ecee08361b0b9a5ede1e34e..fabf9f382d7c5dbb8c252f1cc16f7511b3b5e57b 100644 (file)
@@ -10,6 +10,6 @@ hosts/chinstrap/webpage
 hosts/chinstrap/suppressions
 hosts/chinstrap/suppressions-lock
 hosts/chinstrap/suppressions.new
-hosts/magrathea/suppressions
-hosts/magrathea/suppressions-lock
-hosts/magrathea/suppressions.new
+hosts/magrathea/openbugs
+hosts/magrathea/openbugs-lock
+hosts/magrathea/openbugs.new
index 08f5a491552afacad9568a0ea1c910f5e38955d5..73985ab6e53107a604ddc64789a8f624d03ca81e 100644 (file)
@@ -3,6 +3,7 @@ autopkgtest (1.1.1~) unstable; urgency=low
   * hosts/cadmium/update-suppression: really do not install empty file.
   * allow suppresspackages and blacklist lists to contain more
     information after some whitespace
+  * adt-openbugs-*: new machinery works with debbugs
 
  --
 
index a0b3afba2b5944d1ce14c6b1da75d0ee9453e472..847ece800f5aeaea865c1b9e48cca91b1da13fb6 100755 (executable)
@@ -32,8 +32,8 @@
 # exit status from curl is a bug in curl or LP.
 
 # Furthermore, much of this functionality is now in
-# adt-suppressions-update and the LP part should be in a script called
-# adt-suppressions-fetch-launchpad.
+# adt-openbugs-update and the LP part should be in a script called
+# adt-openbugs-fetch-launchpad.
 
 
 cd ${0%/*}
index 8d1bf834c80709dafcd017dd9c0b77d065873949..8e13acf057faa6ebfe9a2e73dbd656b7ab2cdec8 100644 (file)
@@ -15,7 +15,7 @@ adtvirt_extra_opts=--userv
 upload_if_ok=false
 upload_if_notests=true
 suppressrepeatedemails=false
-suppresspackages=suppressions
+suppresspackages=openbugs
 blacklistbinarypackages=blacklist
 
 email_extra_info='
similarity index 87%
rename from runner/adt-suppressions-fetch-debbugs
rename to runner/adt-openbugs-fetch-debbugs
index 697ddde0497bd899452ba3ed0365bbe129f120b3..beff9ff50849117e7f4cbffe0486fc9ff4c9f155 100755 (executable)
@@ -16,10 +16,10 @@ sub e ($) {
 }
 
 my $dist= e('distro');
-my $debbugs_soap= e('suppressions_debbugs_soap');
-my $debbugs_uri= e('suppressions_debbugs_uri');
-my $usertag_owner= e('suppressions_usertag_owner');
-my $usertag_name= e('suppressions_usertag_name');
+my $debbugs_soap= e('openbugs_debbugs_soap');
+my $debbugs_uri= e('openbugs_debbugs_uri');
+my $usertag_owner= e('openbugs_usertag_owner');
+my $usertag_name= e('openbugs_usertag_name');
 
 my $soap= SOAP::Lite->uri($debbugs_soap)->proxy($debbugs_uri);
 
diff --git a/runner/adt-openbugs-update b/runner/adt-openbugs-update
new file mode 100755 (executable)
index 0000000..9cb795e
--- /dev/null
@@ -0,0 +1,54 @@
+#!/bin/bash
+#
+#  This script expects to be given at least two arguments:
+#     directory to cd to
+#     main config file for adt-testreport-runloop which sets PATH if need be
+#     remaining arguments are passed through to a-t-r unchanged
+
+set -e
+
+export openbugs_kind=debbugs
+export openbugs_debbugs_soap=Debbugs/SOAP
+export openbugs_debbugs_uri=http://bugs.debian.org/cgi-bin/soap.cgi
+export openbugs_usertag_owner=autopkgtest@packages.debian.org
+export openbugs_usertag_name=autopkgtest
+
+cd "$1"
+shift
+. "$1"
+
+: "${openbugs_file_to_fetch:=${suppresspackages:-openbugs}}"
+export openbugs_file_to_fetch
+
+: "${openbugs_file_to_lock:=$openbugs_file_to_fetch-lock}"
+
+echo 'locking'
+
+with-lock-ex -f "$openbugs_file_to_lock" bash -c '
+       . "$1"
+
+       f="$openbugs_file_to_fetch"
+
+       export distro
+
+       echo fetching
+       ${openbugs_fetch:-adt-openbugs-fetch-$openbugs_kind} \
+               >"$f".new
+
+       echo results
+       nl -ba -- "$f".new
+
+       if ! test -s "$f".new;
+       then
+               echo >&2 "NO OPENBUGS - PROBABLY WENT WRONG"
+               exit 1
+       fi
+
+       mv -- "$f".new "$f"
+
+       if [ "x$openbugs_copy_destination" != x ]; then
+               echo "uploading"
+               RSYNC_RSH=ssh rsync "$f" "$openbugs_copy_destination"
+       fi
+       echo done.
+' x "$@"
diff --git a/runner/adt-suppressions-update b/runner/adt-suppressions-update
deleted file mode 100755 (executable)
index e46f45c..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/bash
-#
-#  This script expects to be given at least two arguments:
-#     directory to cd to
-#     main config file for adt-testreport-runloop which sets PATH if need be
-#     remaining arguments are passed through to a-t-r unchanged
-
-set -e
-
-export suppressions_kind=debbugs
-export suppressions_debbugs_soap=Debbugs/SOAP
-export suppressions_debbugs_uri=http://bugs.debian.org/cgi-bin/soap.cgi
-export suppressions_usertag_owner=autopkgtest@packages.debian.org
-export suppressions_usertag_name=autopkgtest
-
-cd "$1"
-shift
-. "$1"
-
-: "${suppressions_file_to_fetch:=${suppresspackages:-suppressions}}"
-export suppressions_file_to_fetch
-
-: "${suppressions_file_to_lock:=$suppressions_file_to_fetch-lock}"
-
-echo 'locking'
-
-with-lock-ex -f "$suppressions_file_to_lock" bash -c '
-       . "$1"
-
-       f="$suppressions_file_to_fetch"
-
-       export distro
-
-       echo fetching
-       ${suppressions_fetch:-adt-suppressions-fetch-$suppressions_kind} \
-               >"$f".new
-
-       echo results
-       nl -ba -- "$f".new
-
-       if ! test -s "$f".new;
-       then
-               echo >&2 "NO SUPPRESSIONS - PROBABLY WENT WRONG"
-               exit 1
-       fi
-
-       mv -- "$f".new "$f"
-
-       if [ "x$suppressions_copy_destination" != x ]; then
-               echo "uploading"
-               RSYNC_RSH=ssh rsync "$f" "$suppressions_copy_destination"
-       fi
-       echo done.
-' x "$@"