summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg/pkg.pl
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-04-24 22:14:11 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-04-24 22:14:11 +0000
commit02b831ae7ce472ed49f40bc4d1ace321fcf4c78d (patch)
treebebf9511f790662d4d7d1fd905836d38ebdd8d16 /usr.sbin/pkg/pkg.pl
parent03f39480df7d26567f5999855c32c014def2430d (diff)
Last-minute fix for flavor deps. Very, very late.
Thanks, Theo.
Diffstat (limited to 'usr.sbin/pkg/pkg.pl')
-rw-r--r--usr.sbin/pkg/pkg.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg/pkg.pl b/usr.sbin/pkg/pkg.pl
index 594f584498f..8b705b496c2 100644
--- a/usr.sbin/pkg/pkg.pl
+++ b/usr.sbin/pkg/pkg.pl
@@ -1,6 +1,6 @@
#!/usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: pkg.pl,v 1.2 2001/04/13 17:05:24 espie Exp $
+# $OpenBSD: pkg.pl,v 1.3 2001/04/24 22:14:10 espie Exp $
#
# Copyright (c) 2001 Marc Espie.
#
@@ -150,6 +150,7 @@ sub check_flavor
# no flavor constraints
return 1 if $spec eq '';
+ $spec =~ s/^-//;
# retrieve all flavors
my %f = map +($_, 1), split /\-/, $f;