don't leave user guessing after latest "no need to update"
authorespie <espie@openbsd.org>
Fri, 29 Jul 2022 14:26:45 +0000 (14:26 +0000)
committerespie <espie@openbsd.org>
Fri, 29 Jul 2022 14:26:45 +0000 (14:26 +0000)
show a "processing" message when we're actually grabbing data
(often from the net). This should be really quick in most cases,
but sometimes, it might take minutes (like for texlive), so that
we know what's going on.

usr.sbin/pkg_add/OpenBSD/PkgAdd.pm

index ee0d737..26d7489 100644 (file)
@@ -1,7 +1,7 @@
 #! /usr/bin/perl
 
 # ex:ts=8 sw=4:
-# $OpenBSD: PkgAdd.pm,v 1.137 2022/06/06 08:03:32 espie Exp $
+# $OpenBSD: PkgAdd.pm,v 1.138 2022/07/29 14:26:45 espie Exp $
 #
 # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
 #
@@ -992,6 +992,8 @@ sub process_set
                return ();
        }
 
+       $set->setup_header($state, undef, "processing");
+       $state->progress->message("...");
        $set->precomplete($state);
        for my $handle ($set->newer) {
                if ($state->tracker->is_installed($handle->pkgname)) {