diff options
author | 2013-05-30 00:02:02 +0000 | |
---|---|---|
committer | 2013-05-30 00:02:02 +0000 | |
commit | 2ab44fa011632fc2f31fe5a89d6d7389bd49e077 (patch) | |
tree | 9530c9903b92cdf50d7146d667338460887dfa5b | |
parent | regen (diff) | |
download | wireguard-openbsd-2ab44fa011632fc2f31fe5a89d6d7389bd49e077.tar.xz wireguard-openbsd-2ab44fa011632fc2f31fe5a89d6d7389bd49e077.zip |
adjust error message for empty files to display the full path to the file,
helps in case the file exists in multiple locations. this also matches fd.o.
-rw-r--r-- | usr.bin/pkg-config/pkg-config | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/pkg-config/pkg-config b/usr.bin/pkg-config/pkg-config index eeaa2791e1b..559ff65bbe6 100644 --- a/usr.bin/pkg-config/pkg-config +++ b/usr.bin/pkg-config/pkg-config @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $OpenBSD: pkg-config,v 1.79 2013/03/31 13:58:01 brad Exp $ +# $OpenBSD: pkg-config,v 1.80 2013/05/30 00:02:02 jasper Exp $ # $CSK: pkgconfig.pl,v 1.39 2006/11/27 16:26:20 ckuethe Exp $ # Copyright (c) 2006 Chris Kuethe <ckuethe@openbsd.org> @@ -358,9 +358,7 @@ sub validate_config # Check if we're dealing with an empty file, but don't error out just # yet, we'll do that when we realize there's no Name field. if (stat($f)->size == 0) { - my $p = $f; - $p =~ s/(^.*\/)(.*?)$/$2/g; - say_error("Package file '$p' appears to be empty"); + say_error("Package file '$f' appears to be empty"); } foreach (@required_elems) { |