]> git.saurik.com Git - apt.git/commitdiff
merge with debian-sid
authorDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 10 Jan 2012 12:39:35 +0000 (13:39 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 10 Jan 2012 12:39:35 +0000 (13:39 +0100)
apt-pkg/aptconfiguration.cc
debian/changelog
test/integration/test-bug-612958-use-dpkg-multiarch-config

index bc385b2dc5e44349ae615b810a6809196ba1a8fc..cc77eea6faa6be7881fed2dec06110e12d34c63a 100644 (file)
@@ -335,7 +335,7 @@ std::vector<std::string> const Configuration::getArchitectures(bool const &Cache
                FILE *dpkg = popen(dpkgcall.c_str(), "r");
                char buf[1024];
                if(dpkg != NULL) {
-                       if (fgets(buf, sizeof(buf), dpkg) != NULL) {
+                       while (fgets(buf, sizeof(buf), dpkg) != NULL) {
                                char* arch = strtok(buf, " ");
                                while (arch != NULL) {
                                        for (; isspace(*arch) != 0; ++arch);
index 36b6d34510bef30e69b6cfd3711353b5796e4256..8517f54d6cf26072190948246810a3fffc6f2278 100644 (file)
@@ -5,6 +5,9 @@ apt (0.8.15.10) UNRELEASEDunstable; urgency=low
     - show a debug why a package was kept by ResolveByKeep()
   * doc/manpage-style.xml:
     - put <brackets> around email addresses
+  * apt-pkg/aptconfiguration.cc:
+    - parse dpkg --print-foreign-architectures correctly in
+      case archs are separated by newline instead of space, too.
   * doc/po/de.po:
     - apply typo-fix from Michael Basse, thanks! (LP: #900770)
 
@@ -19,7 +22,7 @@ apt (0.8.15.10) UNRELEASEDunstable; urgency=low
   * Russian (Yuri Kozlov). Closes: #654844
   * Hungarian (Gabor Kelemen). Closes: #655238
 
- -- David Kalnischkies <kalnischkies@gmail.com>  Tue, 06 Dec 2011 16:35:39 +0100
+ -- David Kalnischkies <kalnischkies@gmail.com>  Tue, 10 Jan 2012 13:38:58 +0100
 
 apt (0.8.15.9) unstable; urgency=low
 
index 4f31c395361bdccaf3403034b3ee60190487c128..18b9646363a6527951e019bf52cbb4e1968c4157 100755 (executable)
@@ -56,4 +56,22 @@ testfail 'dpkg config' 'armel'
 echo '#! /bin/sh
 echo "amd64 armel"' > ./dpkg-printer
 
+testpass 'dpkg config' 'i386'
+testpass 'dpkg config' 'amd64'
+testpass 'dpkg config' 'armel'
+
+echo '#! /bin/sh
+echo "amd64
+armel"' > ./dpkg-printer
+
+testpass 'dpkg config' 'i386'
+testpass 'dpkg config' 'amd64'
 testpass 'dpkg config' 'armel'
+
+echo '#! /bin/sh
+echo "amd64
+i386"' > ./dpkg-printer
+
+testpass 'dpkg config' 'i386'
+testpass 'dpkg config' 'amd64'
+testfail 'dpkg config' 'armel'