Your message dated Thu, 15 Aug 2013 22:18:00 +0000 with message-id <[email protected]> and subject line Bug#714703: fixed in ben 0.6.5 has caused the Debian Bug report #714703, regarding ben: please allow ben to create a ben.cache file when downloading Packages and Sources to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 714703: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=714703 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: ben Version: 0.6.4 Severity: wishlist Tags: patch Hi, here a patch which enables `ben download` to also save a ben.cache file so that I can `ben query` it later. diff --git a/frontends/ben_download.ml b/frontends/ben_download.ml index adaaabd..7b0a4bf 100644 --- a/frontends/ben_download.ml +++ b/frontends/ben_download.ml @@ -21,6 +21,10 @@ open Printf open Benl_core open Benl_base open Benl_error +open Benl_data +open Benl_modules +module Marshal = Benl_marshal.Make(Marshallable) +open Marshallable let p = Benl_clflags.progress let ( / ) = Filename.concat @@ -90,9 +94,21 @@ let download_all () = download_sources (); List.iter download_binaries !Benl_clflags.architectures;; +let save_cache () = + if !Benl_clflags.use_cache then begin + let src_raw = Benl_data.file_origin.get_sources M.empty in + let bin_raw = List.fold_left + Benl_data.file_origin.get_binaries PAMap.empty !Benl_clflags.architectures + in + let data = { src_map = src_raw; bin_map = bin_raw; } in + let file = Benl_clflags.get_cache_file () in + Marshal.dump file data; + end + let main args = ignore (Benl_frontend.parse_common_args args); - download_all () + download_all (); + save_cache () let frontend = { Benl_frontend.name = "download"; I need this functionality because some queries like in [1] rely on the association made between Packages and Sources files. This association is only made by ben when creating a ben.cache. So I can't query Packages and Sources files individually but need to query them at once using a ben.cache file. Thanks! cheers, josch [1] http://release.debian.org/transitions/html/haskell.html
--- End Message ---
--- Begin Message ---Source: ben Source-Version: 0.6.5 We believe that the bug you reported is fixed in the latest version of ben, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Stéphane Glondu <[email protected]> (supplier of updated ben package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Thu, 15 Aug 2013 23:57:07 +0200 Source: ben Binary: libben-ocaml-dev libben-ocaml ben Architecture: source amd64 Version: 0.6.5 Distribution: unstable Urgency: low Maintainer: Debian OCaml Maintainers <[email protected]> Changed-By: Stéphane Glondu <[email protected]> Description: ben - toolbox for Debian maintainers libben-ocaml - OCaml libraries for Debian maintainers (runtime package) libben-ocaml-dev - OCaml libraries for Debian maintainers (development package) Closes: 707599 711908 714703 Changes: ben (0.6.5) unstable; urgency=low . [ Stéphane Glondu ] * Upload to unstable * Migrate to dose-debcheck (Closes: #707599) - the pseudo-header "edos-debcheck" has been renamed into "debcheck"; existing .ben files using it might need update * Add visual indication for sources that build "MA: same" binaries (Closes: #711908) * New computation of dependency levels, which should give better results when there are cycles or several connected components * Drop dependency to ocamlgraph (no longer used) * Update Vcs-* * Bump Standards-Version to 3.9.4 (no changes) . [ Mehdi Dogguy ] * Fix changelog urls * Only warn instead of exiting when a .ben file is incorrect * Better error reporting wrt. configuration files * Separator between comparison operators and versions can be empty * Handle architecture restrictions in packages' relationships * Command-line flags --use-cache and --cache-file are now available for all frontends. . [ Johannes Schauer ] * Allow creation of a cache in download (Closes: #714703) Checksums-Sha1: 445a3aeb862cc8d0ce7f2ddbb7b57e0a4d295c31 1991 ben_0.6.5.dsc 0cb0bc6d166a60576809e51e70ea7e5deea862dd 70738 ben_0.6.5.tar.gz e9065a9a6ab4a7c5ef9131a36475cd11804e4d8b 94330 libben-ocaml-dev_0.6.5_amd64.deb 53892bd504b76726e47d221b27aa5b32826b9da1 96006 libben-ocaml_0.6.5_amd64.deb 420e7bc42644dec84784d8c2367d5ee5ce0c7b2b 541324 ben_0.6.5_amd64.deb Checksums-Sha256: fa35ec5c74b2099525cfe10abd1276aba926bcd91ea8e649734194b78a99a73c 1991 ben_0.6.5.dsc 85905dd2bf91ed01df81c4adfb51a8bcfd710b7da1d76ef50e22b67e9aee4b8e 70738 ben_0.6.5.tar.gz 933612b330397bb07d52cbf554f36ee6ebb7f0f3ff0fc1911667711b015f6ef8 94330 libben-ocaml-dev_0.6.5_amd64.deb 72dcd427287dc42bc1cdd123d211746cf7a51e0a180b777a15c07ce2911d6df9 96006 libben-ocaml_0.6.5_amd64.deb ea49a6f4a418f64c8a3ab8f7179a3e07915fa901e1de20c54d2d3ca0fb8d8125 541324 ben_0.6.5_amd64.deb Files: 4171faa3b2a4b254a51e8ff8fd298150 1991 ocaml optional ben_0.6.5.dsc a692b4c1279ddc8c0f40a789bc829c7b 70738 ocaml optional ben_0.6.5.tar.gz 1d20906db5b2caf09de7f80eda28cd3f 94330 ocaml optional libben-ocaml-dev_0.6.5_amd64.deb 8c1b716e49b049b347d054c70f6bc91a 96006 ocaml optional libben-ocaml_0.6.5_amd64.deb d3de31ac40e9f7961ffcbd51e0c130fd 541324 ocaml optional ben_0.6.5_amd64.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQIcBAEBCgAGBQJSDU+7AAoJEHhT2k1JiBrTqSIP/jCAuL15cmfJD4ije3buokJF IWBJ+8pQhVtGpKfUmdOlxNGo+bb3YLk0MtCKsyRx/sRnB4q8BSbnyoCtZOSeCgNS ntMcap+4akOYcblvepiWCcHiafsvkbfzQ8/tTPNeDxi7QOd9vADrh8pPJ7pyE0uP siOH86CgYgsUDsrQo9U1j4gCrYGiO8HiS5JzqUGjZW4sWk4kdRste9iEe8zUsSXN OutkhHIdtBRmOP2t7BZkI3JNrRGsdRZ1Avd73gYUHBDcyHuAk1Xky5iNGnrzSg1J yC/Bxhg9+b9lx7w8/2WThMeDK7Gg8x6pGa6AdyyGaLWlOcyEWcpkBxUkdxKvJfv1 KZm7H0Ge2DLDKSua9W9Q9h26VO/IUq8wFcgk8gl5Tjv1tUaY6FYpr3evm/eVx7tI vavCDoTp6yTB9pCo7Fq2g/wzh2NK7s9HUSzbdLDrbaPShcBp7cVxkzoroP5NB4Xa tYf7zP5iGVebmSqUFZwlaZK98IpqHp0vkrTnGqO4FdU0kwlvov3/AQzXOZZIgu1Q 6Vb0MCkW4gHSQl4OOBiokyWXRR9gH61mFHl9BCPkUy97LfCMowtWKfngtQg4qti7 YheMrkc2VSpeW3C0+ReRLhjVZW07C4bvkcpMh6ylkDIVdpdLq7e3We0D1jeW8Jev LgT8N/KjvtSfctyfNyS5 =kjX/ -----END PGP SIGNATURE-----
--- End Message ---

