From 2bc93f24ccf34704ed7774c677a8d64868d81eb8 Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Fri, 24 Jul 2009 01:16:36 +0200 Subject: [PATCH] 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. --- bin/wanna-build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"; -- 2.39.5