summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-10-29 14:00:44 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-10-29 14:00:44 -0700
commite26a3051e84146fc888ba6ce19ba34f5427366ab (patch)
treee4e9df229ba67c90dff69da5a23517cb21ca2dbf /bin
parent811a3913144731e8d9e23bf12b2c6e84bf43f8d6 (diff)
downloaddotfiles-e26a3051e84146fc888ba6ce19ba34f5427366ab.tar.gz
rebuild-for-athena: better support rebuilding only for -backports
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rebuild-for-athena22
1 files changed, 15 insertions, 7 deletions
diff --git a/bin/rebuild-for-athena b/bin/rebuild-for-athena
index b32db303..cc8f9302 100755
--- a/bin/rebuild-for-athena
+++ b/bin/rebuild-for-athena
@@ -23,15 +23,23 @@ my $git = Git::Wrapper->new(".");
my $term = Term::ReadLine->new("brand");
die "git commit first\n" unless $git->RUN("status", { porcelain => 1 }) == 0;
-rebuild_for_suite($codename);
-system "release-to-athena";
-
-# if we just rebuilt for unstable, also offer to rebuild for stable-backports
-if ($codename eq "unstable") {
- exit unless $term->ask_yn(prompt => "also rebuild for bullseye-backports?");
-
+if ($codename eq "bullseye-backports") {
rebuild_for_suite("bullseye-backports", "~bpo11+1");
system "release-to-athena";
+} elsif ($codename =~ /-backports$/) {
+ die "unknown backports suite";
+} else {
+ rebuild_for_suite($codename);
+ system "release-to-athena";
+
+ # if we just built for unstable, also offer to rebuild for stable-backports
+ if ($codename eq "unstable") {
+ exit unless
+ $term->ask_yn(prompt => "also rebuild for bullseye-backports?");
+
+ rebuild_for_suite("bullseye-backports", "~bpo11+1");
+ system "release-to-athena";
+ }
}
sub rebuild_for_suite {