xen/readconfig
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
# It is not clear whether the lack of any error message or nonzero
# 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.
+
cd ${0%/*}
use Data::Dumper;
use SOAP::Lite;
-@ARGV==1 or die;
-my ($dist) = @ARGV;
+die if @ARGV;
sub e ($) {
my ($v) = @_;
- $v= 'suppressions_'.$v;
+ $v= ''.$v;
my $r= $ENV{$v};
die "need $v in environment" unless defined $r;
return $r;
}
-my $debbugs_soap= e('debbugs_soap');
-my $debbugs_uri= e('debbugs_uri');
-
-my $usertag_owner= e('usertag_owner')
-my $usertag_name= e('usertag_name')
+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 $soap= SOAP::Lite->uri($debbugs_soap)->proxy($debbugs_uri);
shift
. "$1"
-: "${suppressions_file_to_fetch:=$suppresspackages}"
+: "${suppressions_file_to_fetch:=${suppresspackages:-suppressions}}"
export suppressions_file_to_fetch
-: "${suppressions_lockfile:=$suppressions_file_to_fetch-lock}"
+: "${suppressions_file_to_lock:=$suppressions_file_to_fetch-lock}"
echo 'locking'
f="$suppressions_file_to_fetch"
+ export distro
+
echo fetching
${suppressions_fetch:-adt-suppressions-fetch-$suppressions_kind} \
>"$f".new
if ! test -s "$f".new;
then
- echo >&2 'NO SUPPRESSIONS - PROBABLY WENT WRONG
+ echo >&2 "NO SUPPRESSIONS - PROBABLY WENT WRONG"
exit 1
fi