Prechádzať zdrojové kódy

* apt-pkg/pkgcache.cc:
- Merge fix from David to correct handling in single-arch environments.

This makes apt-get showauto working.

Julian Andres Klode 16 rokov pred
rodič
commit
61d15f9104
3 zmenil súbory, kde vykonal 3 pridanie a 6 odobranie
  1. 0 5
      Makefile
  2. 1 1
      apt-pkg/pkgcache.cc
  3. 2 0
      debian/changelog

+ 0 - 5
Makefile

@@ -13,12 +13,7 @@ default: startup all
 all headers library clean veryclean binary program doc dirs:
 	$(MAKE) -C apt-pkg $@
 	$(MAKE) -C apt-inst $@
-	$(MAKE) -C methods $@
 	$(MAKE) -C cmdline $@
-	$(MAKE) -C ftparchive $@
-	$(MAKE) -C dselect $@
-	$(MAKE) -C doc $@
-	$(MAKE) -C po $@
 
 # Some very common aliases
 .PHONY: maintainer-clean dist-clean distclean pristine sanity 

+ 1 - 1
apt-pkg/pkgcache.cc

@@ -218,7 +218,7 @@ pkgCache::PkgIterator pkgCache::FindPkg(const string &Name) {
 /* Returns 0 on error, pointer to the package otherwise */
 pkgCache::PkgIterator pkgCache::FindPkg(const string &Name, string const &Arch) {
 	if (MultiArchCache() == false) {
-		if (Arch == "native" || Arch == "all" ||
+		if (Arch == "native" || Arch == "all" || Arch == "any" ||
 		    Arch == _config->Find("APT::Architecture"))
 			return SingleArchFindPkg(Name);
 		else

+ 2 - 0
debian/changelog

@@ -65,6 +65,8 @@ apt (0.7.26~exp4) UNRELEASEDexperimental; urgency=low
       an object which will be set to NULL when the object is deallocated.
   * [ABI break] apt-pkg/acquire{-worker,-item,}.h:
     - subclass pkgAcquire::{Worker,Item,ItemDesc} from WeakPointable.
+  * apt-pkg/pkgcache.cc:
+    - Merge fix from David to correct handling in single-arch environments.
   * cmdline/apt-get.cc:
     - Add apt-get markauto, showauto and unmarkauto commands.