--- Anon Sricharoenchai <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> From my experiment, I think I have already found the problem here.
> In the source file "./apt-pkg/clean.cc", I try to insert the debug code like 
> in the following,
> 
>    cerr << "pkgArchiveCleaner::Go(): Pkg==" << Pkg << endl;
>    cerr << "pkgArchiveCleaner::Go(): IsFetchable==" << IsFetchable << endl;
>    cerr << "pkgArchiveCleaner::Go():        Ver==" << Ver << endl;
>    cerr << "pkgArchiveCleaner::Go(): V.VerStr()==" << V.VerStr() << endl;
>           // See if this verison matches the file
>           if (IsFetchable == true && Ver == V.VerStr())
>              break;
> 
> The output that illustrate the problem is,
> 
>    <--cut-->
>    pkgArchiveCleaner::Go(): Pkg==khelpcenter
>    pkgArchiveCleaner::Go(): IsFetchable==1
>    pkgArchiveCleaner::Go():        Ver==3.2.2-1ubuntu3.1
>    pkgArchiveCleaner::Go(): V.VerStr()==4:3.2.2-1ubuntu3.1
>    <--cut-->
> 
> The problem is that the "Ver" value ("3.2.2-1ubuntu3.1") which is extracted
> from the file in cache 
> "/var/cache/apt/archives/khelpcenter_3.2.2-1ubuntu3.1_i386.deb",

Sorry, it's my mistake that this filename is not generated by apt-get, but it 
is the one that I've
manually downloaded
and put in cache without changing its name,
while the filename suggested by apt-get is 
"khelpcenter_4%3a3.2.2-1ubuntu3.1_i386.deb", which
already have
the correct epoch prefix.
So, in my case, it is not a bug.

> is not equal to "V.VerStr()" which has "4:" as an additional prefix.
> 
> For more information,
> 
>    $ apt-cache policy khelpcenter khelpcenter:   Installed: 4:3.2.2-1ubuntu3.1
>      Candidate: 4:3.2.2-1ubuntu3.1
>      Version Table:
>         4:3.4.3-0ubuntu6 0
>            600 http://downloads.planetmirror.com breezy-updates/main Packages
>         4:3.4.3-0ubuntu4 0
>            600 http://downloads.planetmirror.com breezy/main Packages
>         4:3.4.0-0ubuntu18.2 0
>            700 http://downloads.planetmirror.com hoary-updates/main Packages
>         4:3.4.0-0ubuntu18.1 0
>            700 http://downloads.planetmirror.com hoary-security/main Packages
>         4:3.4.0-0ubuntu18 0
>            700 http://downloads.planetmirror.com hoary/main Packages
>         4:3.3.2-1sarge1 0
>            500 http://ftp.debian.org sarge/main Packages
>            500 http://downloads.planetmirror.com sarge/updates/main Packages
>     *** 4:3.2.2-1ubuntu3.1 0
>            800 http://downloads.planetmirror.com warty-security/universe 
> Packages
>            100 /var/lib/dpkg/status
>         4:3.2.2-1ubuntu2 0
>            800 http://downloads.planetmirror.com warty/universe Packages
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to