diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-06-08 07:49:01 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-06-08 07:49:01 +0000 |
commit | a0fe5f7e721d11d6bce42c14770121f3fc3db355 (patch) | |
tree | 34d9b179f59b9471832cb2b7d50fc32dedcd49c7 /usr.sbin | |
parent | 3b1389f768e349d24c639026695f73c07392ddc4 (diff) |
tweak tweak so it works
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgCreate.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm index 350dd99ec2b..508bb9a0906 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgCreate.pm,v 1.7 2010/06/08 07:25:38 espie Exp $ +# $OpenBSD: PkgCreate.pm,v 1.8 2010/06/08 07:49:00 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -478,9 +478,9 @@ sub handle_fragment } my $newname = deduce_name($state, $file->name, $frag, $not); if ($state->{subst}->has_fragment($def, $frag)) { - return if defined $not; + return $file if defined $not; } else { - return unless defined $not; + return $file unless defined $not; } if (defined $newname) { $state->set_status("switching to $newname") |