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

Bug#45640: marked as done (sources.list parsing with '/' for the dist name broken)



Your message dated Thu, 11 Nov 1999 16:40:20 -0700 (MST)
with message-id <[🔎] Pine.LNX.3.96.991111163840.12810C-100000@wakko.deltatee.com>
and subject line Fixed Bugs
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Darren Benham
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 21 Sep 1999 05:02:28 +0000
Received: (qmail 10283 invoked from network); 21 Sep 1999 05:02:27 -0000
Received: from pdt089103.res-hall.nwu.edu (HELO anomie.dhis.org) (199.74.89.103)
  by master.debian.org with SMTP; 21 Sep 1999 05:02:27 -0000
Received: from lists (helo=localhost)
	by anomie.dhis.org with local-esmtp (Exim 3.03 #1 (Debian))
	for submit@bugs.debian.org
	id 11TI8k-0008Ea-00; Tue, 21 Sep 1999 00:06:54 -0500
Date: Tue, 21 Sep 1999 00:06:53 -0500 (CDT)
From: Brad <lists@anomie.dhis.org>
To: submit@bugs.debian.org
Subject: sources.list parsing with '/' for the dist name broken
Message-ID: <Pine.LNX.4.10.9909202342500.19366-100000@anomie.dhis.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Package: apt
Version: 0.3.13

i have the following line in my sources.list to handle packages that i
compiled locally (e.g. kernels):
  deb file:/usr/local/debs / 

After upgrading from apt-0.3.12 to apt-0.3.13, this line causes apt-get
update to fail. A complete transcript follows.
  # apt-get update
  E: The method driver /usr/lib/apt/methods/Packages.gz could not be found.
  E: The method driver /usr/lib/apt/methods/Release could not be found.

Also, other operations (e.g. apt-get source) give the following warning
(incomplete transcript)
  W: Couldn't stat source package list 'file:/usr/local/debs/  Packages'
  (/var/state/apt/lists/Packages) - stat (2 No such file or directory)


i managed to track the problem to a piece of code in these two functions
in apt-pgk/sourcelist.cc.
  string pkgSourceList::Item::PackagesURI() const
  string pkgSourceList::Item::ReleaseURI() const

The code in question, identical in the two functions:
      if (Dist[Dist.size() - 1] == '/')
      {
         if (Dist != "/")
            Res = URI + Dist;
      }      
      else
         Res = URI + "dists/" + Dist + '/' + Section +
         "/binary-" + _config->Find("APT::Architecture") + '/';

In particular, you'll notice that if Dist == "/", Res remains as "". Since
there's not even the proper method descriptor (in this case, 'file:') on
the front, apt gets confused and thinks it should use method Packages.gz
or Resources (depending which fuction).

I suggest something like the patch below to fix this problem, although
there could easily be better ways to do it.


--- apt-0.3.13/apt-pkg/sourcelist.cc	Thu Sep  9 12:53:40 1999
+++ apt-0.3.13/apt-pkg/sourcelist.cc	Mon Sep 20 23:39:34 1999
@@ -172,6 +172,8 @@
       {
 	 if (Dist != "/")
 	    Res = URI + Dist;
+         else
+            Res = URI;
       }      
       else
 	 Res = URI + "dists/" + Dist + '/' + Section +
@@ -240,6 +242,8 @@
       {
 	 if (Dist != "/")
 	    Res = URI + Dist;
+         else
+            Res = URI;
       }      
       else
 	 Res = URI + "dists/" + Dist + '/' + Section +



i am using Debian potato with a custom-compiled kernel version 2.2.12. All
packages Depended and Suggested are the latest potato versions from
http.us.debian.org as of the time of this email.

---------------------------------------
Received: (at 45640-done) by bugs.debian.org; 11 Nov 1999 23:40:29 +0000
Received: (qmail 22352 invoked from network); 11 Nov 1999 23:40:27 -0000
Received: from crash.ab.videon.ca (root@206.75.216.220)
  by master.debian.org with SMTP; 11 Nov 1999 23:40:27 -0000
Received: from wakko.deltatee.com (mail@wakko.powersurfr.com [24.108.53.97])
	by crash.ab.videon.ca (8.9.2/8.9.2) with ESMTP id QAA06526;
	Thu, 11 Nov 1999 16:40:21 -0700 (MST)
Received: from localhost (wakko.deltatee.com) [127.0.0.1] (jgg)
	by wakko.deltatee.com with smtp (Exim 2.11 #1)
	id 11m3pE-0003ND-00 (Debian); Thu, 11 Nov 1999 16:40:20 -0700
Date: Thu, 11 Nov 1999 16:40:20 -0700 (MST)
From: Jason Gunthorpe <jgg@ualberta.ca>
X-Sender: jgg@wakko.deltatee.com
To: Deity Creation Team <deity@lists.debian.org>
Subject: Fixed Bugs
Message-ID: <[🔎] Pine.LNX.3.96.991111163840.12810C-100000@wakko.deltatee.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


These bugs are fixed in the latest APT upload to unstable, 0.3.14:

apt (0.3.14) unstable; urgency=low

  * Fix Perl or group pre-depends thing Closes: #46091, #46096, #46233, #45901
  * Fix handling of dpkg's conversions from < -> <= Closes: #46094, #47088
  * Make unparsable priorities non-fatal Closes: #46266, #46267, #46293, #46298
  * Fix handling of '/' for the dist name. Closes: #43830, #45640, #45692
  * Fixed 'Method gave a blank filename' error from IMS queries onto CDs.
    Closes: #45034, #45695, #46537
  * Made OR group handling in the problem resolver more elaborate. Closes: #45646
  * Added APT::Clean-Installed option. Closes: #45973
  * Moves the free space check to after the calculated size is printed.
    Closes: #46639, #47498
  * mipsel arch Closes: #47614
  * Beautified URI printing to not include passwords Closes: #46857
  * Fixed little problem with --no-download Closes: #47557
  * Tweaked Dselect 'update' script to re-gen the avail file even in the
    event of a failure Closes: #47112
  * Retries for source archives too Closes: #47529
  * Unmounts CDROMs iff it mounted them Closes: #45299
  * Checks for the partial directories before doing downloads Closes: #47392
  * no_proxy environment variable (http only!) Closes: #43476
  * apt-cache showsrc Closes: #45799
  * De-Refs Single Pure virtual packages. Closes: #42437, #43555
  * Regexs for install. Closes: #35304, #38835
  * Dependency reports now show OR group relations
  * Re-Install feature. Cloes: #46961, #37393, #38919
  * Locks archive directory on clean (woops)
  * Remove is not 'sticky'. Closes: #48392
  * Slightly more accurate 'can not find package' message. Closes: #48311
  * --trivial-only and --no-remove. Closes: #48518
  * Increased the cache size. Closes: #47648
  * Comment woopsie. Closes: #48789
  * Removes existing links when linking sources. Closes: #48775
  * Problem resolver does not install all virtual packages. Closes: #48591, #49252
  * Clearer usage message about 'source' Closes: #48858
  * Immediate configure internal error Closes: #49062, #48884
  
 -- Ben Gertzfield <che@debian.org>  Sun,  7 Nov 1999 20:21:25 -0800


Reply to: