Wow! thats nice! Can we integrate this into equo? On Mon, Sep 8, 2014 at 2:40 PM, Sławomir Nizio <slawomir.ni...@sabayon.org> wrote:
> Hi, > > (Easy downloading of Entropy packages, from any repository and for any > architecture.) > > Some of you may have heard about app-misc/querypkg. It's a tool to make > queries to display information about Sabayon packages (it retrieves data > from packages.sabayon.org using its API). Version 2.2 has a new option, > -D that displays *only* name, the digest and download location of a > package. > > $ querypkg -D equo > app-admin/equo def8970b673e98c5ec317507bd44d182 > > packages/amd64/5/app-admin/app-admin:equo-285.5b68043937192e9012c2bbc84071f373ba8ca9e2~0.tbz2 > > (The tool has more options.) > > > This version ships with a shell script, download_entropy_packages.sh > that makes use of this option. The script can download an Entropy package. > > $ download_entropy_packages.sh --arch x86 equo > Download 'app-admin/equo' > > (packages/x86/5/app-admin/app-admin:equo-285.074ae295db3f4e2f061947a5fd57525cdcd96c8f~0.tbz2)? > [yNq] y > [snip] > > > Digest OK. > > > Because sometimes the API returns not exactly what you want, the script > asks for each package if you want to download it. After downloading, it > verifies that the digest is correct (md5). > > > *NOTE* This is just a simple checksum verification. It is more a > integrity rather than security check. > > > Another example. > > $ download_entropy_packages.sh --type lib libX11.so > [snip] > 2014-09-08 21:35:02 (1.21 MB/s) - > 'x11-libs:libX11-1.6.2.d5e7a2a4b2ac56b1807c5958768f6c0ca847fb60~1.tbz2' > saved [3110512/3110512] > > > It was my actual use case (but I didn't have this implemented at that > time!). > > I think that it may be also useful for someone else. > > (app-misc/querypkg 2.2 is in sabayonlinux.org; not yet in sabayon-weekly) > >