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

Re: package pool and big Packages.gz file



Jason Gunthorpe wrote:
> 
....
> Hint: Read the bug page for APT to discover why!
> 
....

	Looking through the apt bugs....., saw this one, rejected:

Bug#77054: wish: show current->upgraded versions on upgrade -u


My private solution to this is the following patch to `apt-get':


--- algorithms.cc-ORG   Sat May 13 06:08:43 2000
+++ algorithms.cc       Sat Sep  9 22:11:19 2000
@@ -47,9 +47,13 @@
 {
    // Adapt the iterator
    PkgIterator Pkg = Sim.FindPkg(iPkg.Name());
+   const char *oldver = Pkg->CurrentVer ? Pkg.CurrentVer().VerStr() : "-";
+   const char *newver = Pkg->VersionList ? Pkg.VersionList().VerStr() : "-";
+
    Flags[Pkg->ID] = 1;
    
-   cout << "Inst " << Pkg.Name();
+   cout << "Inst " << Pkg.Name() << " (" << oldver << " > " << newver << ")";
+
    Sim.MarkInstall(Pkg,false);
    
    // Look for broken conflicts+predepends.


This informs me about versions when doing "apt-get --no-act install package".

I like this very much, and would appreciate this going into the official
apt-get command.....


-- 
Thanks,
----------------------------------------------------------------  -o)
Matthijs Melchior                                       Maarssen  /\\
mailto:mmelchio@xs4all.nl      +31 346 570616        Netherlands _\_v
---------------------------------------------------------------- ----



Reply to: