[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#200395: Patch



Hello folks,

I'm sending a patch to solve this simple issue, please apply.

This patch solves #200395 and #200102 

? bin
? docs
? include
? obj
? scripts
? debian/cvs-build
? doc/fr/apt-cache.fr.8
? doc/fr/apt-cdrom.8
? doc/fr/apt-extracttemplates.1
? doc/fr/apt-get.fr.8
? doc/fr/apt-sortpkgs.1
? doc/fr/vendors.list.fr.5
? po/domains
Index: cmdline/apt-get.cc
===================================================================
RCS file: /cvs/deity/apt/cmdline/apt-get.cc,v
retrieving revision 1.133
diff -u -r1.133 apt-get.cc
--- cmdline/apt-get.cc	25 Jul 2003 22:03:49 -0000	1.133
+++ cmdline/apt-get.cc	26 Jul 2003 17:33:37 -0000
@@ -1516,8 +1516,8 @@
       {
 	 pkgCache::PkgIterator I(Cache,Cache.List[J]);
 
-	 /* Just look at the ones we want to install */
-	 if ((*Cache)[I].Install() == false)
+	 /* Just look at the ones we want to install but skip all already selected */
+	 if ((*Cache)[I].Install() == false || (*Cache)[I].NewInstall() == true)
 	   continue;
 
 	 for (pkgCache::VerIterator V = I.VersionList(); V.end() == false; V++)
@@ -1562,10 +1562,10 @@
 		       RecommendsList += target;
 		       SuggestsVersions += string(Cache[Start.TargetPkg()].CandVersion) + "\n";
 		     }
-	      if (Start == End)
-		break;
-	      Start++;
-	    } while (1);
+		     if (Start == End)
+		       break;
+		     Start++;
+		   } while (1);
 	       }
 	   }
       }
[]s

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio@debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://www.freedom.ind.br/otavio
---------------------------------------------

Reply to: