Add sanity check for data passed to add_packages
This commit is contained in:
parent
91a01ae3a0
commit
0ae829d756
|
@ -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
|
||||
* Add sanity check for data passed to add_packages.
|
||||
|
||||
-- Frans Pop <fjp@debian.org> Fri, 06 Jun 2008 22:32:06 +0200
|
||||
-- Frans Pop <fjp@debian.org> Sun, 13 Jul 2008 13:12:39 +0200
|
||||
|
||||
debian-cd (3.0.4) unstable; urgency=low
|
||||
|
||||
|
|
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue