Commit Diff
Diff:
4bd33c43f9703abc366d81140b29460acc92063c
cc0a4b78b636a159fa4f4bad0c6f2e8820df105e
Commit:
cc0a4b78b636a159fa4f4bad0c6f2e8820df105e
Tree:
4a8351f14f964a8b657a36b5a8e136c8e030a53f
Author:
fredgnix <fredgnix@a8afeb8c-277c-4b4a-a4f6-ef4c85adc32b>
Committer:
fredgnix <fredgnix@a8afeb8c-277c-4b4a-a4f6-ef4c85adc32b>
Date:
Tue Apr 10 13:58:19 2012 UTC
Message:
fix slack DB, test if pkgname is defined
blob - 1ea40300e008378de812ec914843021a68f06d0d
blob + c3e11b0564a14df1f910900ead8dd6e2c9e6104a
--- Pkgtxt2db.pm
+++ Pkgtxt2db.pm
@@ -143,7 +143,7 @@ sub mkdadb {
$pkgdb{$pkgname}[7] = "$2";
next;
}
- if ($_ =~ /\Q${pkgname}\E:(.*)/) {
+ if (($_ =~ /\Q${pkgname}\E:(.*)/) && (defined($pkgname))) {
$pkgdb{$pkgname}[8] = $pkgdb{$pkgname}[8] . "$1";
next;
}
Frédéric Galusik