Sometimes you need a pause for a month or two to find one-liner for the

problem you thought is too complex.

Allow simple "-subpkg" to be used instead of ugly ",-subpkg" for portbump.
This commit is contained in:
zhuk 2014-09-30 16:56:21 +00:00
parent 6a4bc96c12
commit 4efe72d480

View File

@ -332,7 +332,9 @@ for (@ARGV) {
# zap any FLAVOR information to make it easier to feed from of sqlports
s/,+[^,-]*/,/g;
# XXX handle "-" subpackage case?
# Allow simple "-subpkg" instead of ugly ",-subpkg"
s/^-/,-/;
if (/^(.*),(-.+)$/) {
my $subdir = $1 || ".";
if (defined $allpkgs{$subdir}) {