The following commit has been merged in the master branch: commit 708c788f95cc920b83b7d0dbe59919547994dd7f Author: Guillem Jover <guil...@debian.org> Date: Mon Feb 6 11:58:43 2012 +0100
dpkg: When removing a foreign arch, only consider < halfinstalled an issue Packages in lesser states do not pose any problem for dependencies. diff --git a/src/main.c b/src/main.c index fb47939..d8bdf06 100644 --- a/src/main.c +++ b/src/main.c @@ -3,7 +3,7 @@ * main.c - main program * * Copyright © 1994,1995 Ian Jackson <i...@chiark.greenend.org.uk> - * Copyright © 2006-2010 Guillem Jover <guil...@debian.org> + * Copyright © 2006-2012 Guillem Jover <guil...@debian.org> * Copyright © 2010 Canonical Ltd. * written by Martin Pitt <martin.p...@canonical.com> * @@ -523,6 +523,8 @@ arch_remove(const char *const *argv) /* Check if it's safe to remove the architecture from the db. */ iter = pkg_db_iter_new(); while ((pkg = pkg_db_iter_next_pkg(iter))) { + if (pkg->status < stat_halfinstalled) + continue; if (pkg->installed.arch == arch) { if (fc_architecture) warning(_("removing architecture '%s' currently in use by database"), -- dpkg's main repository -- To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org