recheck list for non emptyness *after* filtering obsolete packages.
authorespie <espie@openbsd.org>
Wed, 24 Dec 2014 12:50:22 +0000 (12:50 +0000)
committerespie <espie@openbsd.org>
Wed, 24 Dec 2014 12:50:22 +0000 (12:50 +0000)
usr.sbin/pkg_add/OpenBSD/PkgAdd.pm

index 06b8d2b..9741e95 100644 (file)
@@ -1,7 +1,7 @@
 #! /usr/bin/perl
 
 # ex:ts=8 sw=4:
-# $OpenBSD: PkgAdd.pm,v 1.79 2014/11/30 15:53:54 espie Exp $
+# $OpenBSD: PkgAdd.pm,v 1.80 2014/12/24 12:50:22 espie Exp $
 #
 # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
 #
@@ -1066,7 +1066,7 @@ sub inform_user_of_problems
                    });
 
                $state->say("Couldn't find updates for #1", 
-                   join(', ', sort @cantupdate));
+                   join(', ', sort @cantupdate)) if @cantupdate > 0;
        }
        if (defined $state->{issues}) {
                $state->say("There were some ambiguities. ".