Package: apt-file
Version: 2.0.6
Severity: important
Justification: This makes the software difficult to use, possibly even
more so than lynx ftp.debian.org ... Contents.gz, and because p.d.o
is broken, and apt-file is a recommended alternative.
I expect to be able to 'sudo apt-file update', no matter what the
state of the existing Contents files is, and have new contents files
downloaded to whatever directory you decide should hold them. I
expect that when the download(s) (is|are) complete, that the new files
will be atomically rename()d such that they are used by
'apt-file search', so that 'apt-file search' doesn't fail with strange
warning during the update.
[EMAIL PROTECTED]:~$ time sudo apt-file update
cp: cannot stat
`//var/cache/apt-build/repository/dists/apt-build/Contents-i386.gz': No such
file or directory
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
real 0m1.755s
^^^^^^^^
user 0m0.130s
sys 0m0.044s
I don't know why it is looking at /var/cache/apt-build/ at all, or why
there is the string "//". Of course the big problem is that it didn't
update the Contents files.
[EMAIL PROTECTED]:~$ find /var/cache/apt-build/
/var/cache/apt-build/
/var/cache/apt-build/build
/var/cache/apt-build/repository
/var/cache/apt-build/repository/stable
/var/cache/apt-build/repository/dists
/var/cache/apt-build/repository/apt-build
/var/cache/apt-build/repository/main
/var/cache/apt-build/repository/binary-i386
/var/cache/apt-build/repository/Release
/var/cache/apt-build/repository/Packages.gz
But if I move the old files out of the way, it works.
[EMAIL PROTECTED]:~$ sudo mkdir /var/cache/apt-file
[EMAIL PROTECTED]:~$ sudo mv /var/cache/apt/*Contents* /var/cache/apt-file/
[EMAIL PROTECTED]:~$ time sudo apt-file update
cp: cannot stat
`//var/cache/apt-build/repository/dists/apt-build/Contents-i386.gz':
No such file or directory
Warning: Illegal date format for -z/--timecond (and not a file name).
Warning: Disabling time condition. See curl_getdate(3) for valid date
syntax.
% Total % Received % Xferd Average Speed Time Time Time
% Current
Dload Upload Total Spent Left
Speed
100 8021k 100 8021k 0 0 522k 0 0:00:15 0:00:15
--:--:-- 532k
Warning: Illegal date format for -z/--timecond (and not a file name).
Warning: Disabling time condition. See curl_getdate(3) for valid date
syntax.
% Total % Received % Xferd Average Speed Time Time Time
% Current
Dload Upload Total Spent Left
Speed
100 9823k 100 9823k 0 0 34132 0 0:04:54 0:04:54
--:--:-- 34269
Warning: Illegal date format for -z/--timecond (and not a file name).
Warning: Disabling time condition. See curl_getdate(3) for valid date
syntax.
% Total % Received % Xferd Average Speed Time Time Time
% Current
Dload Upload Total Spent Left
Speed
100 8778k 100 8778k 0 0 512k 0 0:00:17 0:00:17
--:--:-- 517k
real 5m28.322s
^^^^^^^^^
user 0m0.241s
sys 0m0.428s
[EMAIL PROTECTED]:~$ time sudo apt-file update
cp: cannot stat
`//var/cache/apt-build/repository/dists/apt-build/Contents-i386.gz':
No such file or directory
% Total % Received % Xferd Average Speed Time Time Time
% Current
Dload Upload Total Spent Left
Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0
% Total % Received % Xferd Average Speed Time Time Time
% Current
Dload Upload Total Spent Left
Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0
% Total % Received % Xferd Average Speed Time Time Time
% Current
Dload Upload Total Spent Left
Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:--
--:--:-- 0
real 0m1.674s
^^^^^^^^
user 0m0.123s
sys 0m0.051s
So, apt-file update breaks future apt-file updates, which is totally
broken.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]