use proper log idiom (blanket okay from theo for pkg_add careful changes for
authorespie <espie@openbsd.org>
Tue, 3 Aug 2010 14:07:27 +0000 (14:07 +0000)
committerespie <espie@openbsd.org>
Tue, 3 Aug 2010 14:07:27 +0000 (14:07 +0000)
the time being)

usr.sbin/pkg_add/OpenBSD/PackingElement.pm

index c384c8f..801a3f6 100644 (file)
@@ -1,5 +1,5 @@
 # ex:ts=8 sw=4:
-# $OpenBSD: PackingElement.pm,v 1.182 2010/06/30 10:51:04 espie Exp $
+# $OpenBSD: PackingElement.pm,v 1.183 2010/08/03 14:07:27 espie Exp $
 #
 # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
 #
@@ -1622,7 +1622,7 @@ sub prepare
                        chomp;
                        next if m/^\+\-+\s*$/o;
                        s/^[+-] //o;
-                       $state->log($_);
+                       $state->log("#1", $_);
                }
        } else {
                $state->errsay("Can't open #1: #2", $fname, $!);