From: Steinar H. Gunderson Date: Sun, 11 Mar 2007 02:18:12 +0000 (+0000) Subject: Fix silly bug that caused sections to always be printed as unknown. X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=commitdiff_plain;h=fb2fdeb9ef55b7cab90ab1ca736446942a95c29c;hp=74ca4b7ddabea1799631b4b8c36223d0cdcd15d6;ds=sidebyside Fix silly bug that caused sections to always be printed as unknown. --- diff --git a/bugreport b/bugreport index e176dfa..123a5b0 100755 --- a/bugreport +++ b/bugreport @@ -43,9 +43,9 @@ sub PrintPackageHeader() { print "
";
 		print "Package: " . scanlib::wwwname($p);
 		if (defined($scanlib::section{$p})) {
-			print " (unknown).\n";
-		} else {
 			print " ($scanlib::section{$p}).\n";
+		} else {
+			print " (unknown).\n";
 		}
 		print "Maintainer: ";
 		if (exists($scanlib::maintainer{$p}) && $scanlib::maintainer{$p} ne '') {