Add sanity check for data passed to add_packages

This commit is contained in:
Frans Pop 2008-07-13 11:33:14 +00:00
parent 91a01ae3a0
commit 0ae829d756
2 changed files with 7 additions and 2 deletions

5
debian/changelog vendored
View File

@ -59,8 +59,9 @@ debian-cd (3.0.5) UNRELEASED; urgency=low
discs. Nothing special, just extra sizes recognised.
* Fix bashism in tools/grab_md5. Closes: #489562
* Change lynx dependency to use lynx-cur|lynx instead. Closes: #489486
-- Frans Pop <fjp@debian.org> Fri, 06 Jun 2008 22:32:06 +0200
* Add sanity check for data passed to add_packages.
-- Frans Pop <fjp@debian.org> Sun, 13 Jul 2008 13:12:39 +0200
debian-cd (3.0.4) unstable; urgency=low

View File

@ -950,6 +950,10 @@ sub add_packages {
my $pkg = shift;
my ($arch, $component, $pkgname) = split /:/, $pkg;
if ("$arch" eq "" or "$pkgname" eq "" or "$pkgname" eq "") {
die "inconsistent data passed to add_packages: $pkg\n";
}
msg_ap(0, "Looking at $pkg: arch $arch, package $pkgname, rollback $rollback\n");
$_ = $pkginfo{$arch}{$pkgname};