Daniel Macks wrote:
[]
While doing that, I noticed that "apt-get --print-uris" does not print
things that if one has already compiled a package, apt-get may see
that .deb in preference to one from the apt server. Probably best to
not "fetch" those file: URIs into the cache/apt dir. Also, that means
UseBinaryDist is not "use the apt server" but "use the apt server
unless one has already compiled locally and then run scanpackages and
had fink rebuild its aptdb".

While you are in there, maybe you could also fix an old bug of apt-get that has been annoying people for quite a while?


The bug is that every time a new bindist comes out (maybe also at other times), apt-get upgrade insists on installing bunches of packages that are already installed with their latest version. Apt-get (or apt-cache) suddenly doesn't understand any more that the locally compiled debs and the debs from the bindist are the same version.

One gets, for example

costabel% apt-cache showpkg mowitz | head -5
Package: mowitz
Versions:
0.3.0-11(/sw/var/lib/apt/lists/heanet.dl.sourceforge.net_fink_direct%5fdownload_dists_10.3_release_main_binary-darwin-powerpc_Packages)
0.3.0-11(/sw/var/lib/dpkg/status)
0.2.2-1(/sw/var/lib/apt/lists/us.dl.sourceforge.net_fink_direct%5fdownload_dists_10.2_release_main_binary-darwin-powerpc_Packages)

Note the two lines for version 0.3.0-11. In this situation, apt-get wants to "upgrade" the package and to replace the local version by the same version from the bindist. Once it is done, it will show correctly one single line for this version (this is from a different machine, hence the different sf mirror):

costabel% apt-cache showpkg mowitz | head -5
Package: mowitz
Versions:
0.3.0-11(/sw/var/lib/apt/lists/us.dl.sourceforge.net_fink_direct%5fdownload_dists_10.3_release_main_binary-darwin-powerpc_Packages)(/sw/var/lib/dpkg/status)

I have no idea how this happens, but it seems related to the parts of apt-get that you are working on right now, so maybe if you could have a look?

--
Martin



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to