]> git.saurik.com Git - apt.git/commitdiff
- ignore the Vcs-Browser tag (Fixes LP: #121770)
authorMichael Vogt <michael.vogt@ubuntu.com>
Fri, 29 Jun 2007 11:06:40 +0000 (13:06 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Fri, 29 Jun 2007 11:06:40 +0000 (13:06 +0200)
cmdline/apt-get.cc
debian/changelog

index 6aafe9704b380e39cf5fe0b128752a2bc8c1cd38..5a6369476101a99311ba0250b301b184a926e808 100644 (file)
@@ -2116,10 +2116,15 @@ bool DoSource(CommandLine &CmdL)
       
       string srec = Last->AsStr();
       string::size_type pos = srec.find("\nVcs-");
-      if (pos != string::npos )
+      while (pos != string::npos)
       {
         pos += strlen("\nVcs-");
         string vcs = srec.substr(pos,srec.find(":",pos)-pos);
+        if(vcs == "Browser") 
+        {
+           pos = srec.find("\nVcs-", pos);
+           continue;
+        }
         pos += vcs.length()+2;
         string::size_type epos = srec.find("\n", pos);
         string uri = srec.substr(pos,epos-pos).c_str();
@@ -2135,6 +2140,8 @@ bool DoSource(CommandLine &CmdL)
         ioprintf(c1out, "Are you sure you want to continue [yN]? ");
         if(!YnPrompt(false))
            return _error->Error(_("Abort."));
+        else 
+           break;
       }
 
       // Back track
index e14f154995e8d99682fde760d0d00c9d57ad4948..96dfafa5a8f6273cf2b0715310673eec860b9e3f 100644 (file)
@@ -3,6 +3,7 @@ apt (0.7.2ubuntu4) unstable; urgency=low
   * cmdline/apt-get.cc:
     - make the XS-Vcs-$foo warning more copy'n'paste
       friendly (thanks to Matt Zimmerman)
+    - ignore the Vcs-Browser tag (Fixes LP: #121770)
 
  --