diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-04-04 00:12:22 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-04-04 00:12:29 -0700 |
commit | bd17f34646473638dc88e3a033e01d424fa01217 (patch) | |
tree | c41ad8573413b5d1e0302721a21799fd31a7e910 | |
parent | 10cd801bfaad93ab8563baa0b61aab616e17e030 (diff) | |
download | dotfiles-bd17f34646473638dc88e3a033e01d424fa01217.tar.gz |
confirm what will be done
-rwxr-xr-x | bin/buildssrht-preupload | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/bin/buildssrht-preupload b/bin/buildssrht-preupload index 075af545..e974dae6 100755 --- a/bin/buildssrht-preupload +++ b/bin/buildssrht-preupload @@ -27,8 +27,10 @@ use API::GitForge qw(forge_access_token); use Getopt::Long; use Git::Wrapper; use Cwd; +use Term::UI; -my $git = Git::Wrapper->new(getcwd); +my $term = Term::ReadLine->new("brand"); +my $git = Git::Wrapper->new(getcwd); my $user = "~spwhitton"; # TODO could fetch from API my $dist = "unstable"; @@ -61,6 +63,14 @@ my ($commit) = $git->rev_parse({ verify => 1 }, "HEAD"); $git->for_each_ref({ contains => $branch }, "refs/remotes/$remote") or die "remote $remote doesn't appear to have a copy of your HEAD"; +exit + unless $term->ask_yn( + prompt => +"will run the build for $branch cloning from $remote with note \"$note\", " + . "dist $dist, with --quilt=$quilt", + default => "y" + ); + my $schroot = "$dist-amd64-sbuild"; my $changes = "${source}_${version}_multi.changes"; |