From: Joachim Breitner Date: Thu, 23 Jul 2009 23:16:36 +0000 (+0200) Subject: Fix --import X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2bc93f24ccf34704ed7774c677a8d64868d81eb8;p=wannabuild.git Fix --import Previously, it requered a Package: _and_ a User: field. Now either is ok, and the checks for Packages are skipped for User: stanzas. --- diff --git a/bin/wanna-build b/bin/wanna-build index 457ee27..6571b7a 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -2090,7 +2090,10 @@ sub check_entry { return if $op_mode eq "manual-edit"; # no checks then # check for required fields - if (!exists $pkg->{'Package'} || !exists $pkg->{'User'}) { + if (exists $pkg->{'User'}) { + return; + } + if (!exists $pkg->{'Package'}) { print STDERR "Bad entry: ", join( "\n", map { "$_: $pkg->{$_}" } keys %$pkg ), "\n"; die "Database entry lacks Package or User: field\n";