Package: approx
Version: 4.2-1
Severity: normal
Tags: patch

Dear Eric,

It seems that approx may have some issues when trying to download
Packages.bz2, while it doesn't have problems with Packages.gz files
(even when both the files are there):

,----
| /tmp$ wget 
http://127.0.0.1:9999/debian/dists/sid/main/binary-amd64/Packages.{bz2,gz}
| --2010-04-22 23:21:06--  
http://127.0.0.1:9999/debian/dists/sid/main/binary-amd64/Packages.bz2
| Connecting to 127.0.0.1:9999... connected.
| HTTP request sent, awaiting response... 404 Not Found
| 2010-04-22 23:21:06 ERROR 404: Not Found.
| 
| --2010-04-22 23:21:06--  
http://127.0.0.1:9999/debian/dists/sid/main/binary-amd64/Packages.gz
| Connecting to 127.0.0.1:9999... connected.
| HTTP request sent, awaiting response... 200 OK
| Length: 8462774 (8.1M) [text/plain]
| Saving to: “Packages.gz”
| 
| 100%[=====================================>] 8,462,774   --.-K/s   in 0.1s    
| 
| 2010-04-22 23:21:09 (76.1 MB/s) - “Packages.gz” saved [8462774/8462774]
| 
| FINISHED --2010-04-22 23:21:09--
| Downloaded: 1 files, 8.1M in 0.1s (76.1 MB/s)
| /tmp$
`----

In my case, the configuration for approx has a translation of:

,----
| debian                        http://ftp.br.debian.org/debian/
`----

And I can grab the files at:
   http://ftp.debian.org/debian/dists/sid/main/binary-i386/

BTW, would something like

,----
| --- approx-4.2.orig/util.ml
| +++ approx-4.2/util.ml
| @@ -147,7 +147,10 @@ let gensym str =
|  let rm file = try Sys.remove file with _ -> ()
|  
|  let decompressors =
| -  [(".gz", "/bin/gunzip --stdout"); (".bz2", "/bin/bunzip2 --stdout")]
| +  [(".gz", "/bin/gunzip --stdout");
| +   (".bz2", "/bin/bunzip2 --stdout");
| +   (".lzma", "/usr/bin/lzma --stdout");
| +   (".xz", "/usr/bin/xz --stdout");]
|  
|  let is_compressed file =
|    match extension file with
`----

be incorporated in approx? As I said, I am not able to read/write ocaml
and, thus, I can't really provide a working patch.


Thanks, Rogério Brito.

-- 
Rogério Brito : rbr...@{ime.usp.br,gmail.com} : GPG key 1024D/7C2CAEB8
http://rb.doesntexist.org : Packages for LaTeX : algorithms.berlios.de
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br



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

Reply via email to