FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 06-08-2010, 11:00 AM
Kazuo Teramoto
 
Default Check all checksum types

On Tue, Jun 8, 2010 at 2:33 AM, Allan McRae <allan@archlinux.org> wrote:
> Check every checksum that makepkg supports rather than only md5sums.
> Fixes FS#17168.
>
> Signed-off-by: Allan McRae <allan@archlinux.org>
> ---
>
> I am sure there has to be some way to loop through all that duplication,
> but the how escapes me...

getattr?

What about the attached implementation of checksums.py? Note: I dont tested it!

--
«Dans la vie, rien n'est ŕ craindre, tout est ŕ comprendre»
Marie Sklodowska Curie.
 
Old 06-08-2010, 11:09 AM
Xavier Chantry
 
Default Check all checksum types

On Tue, Jun 8, 2010 at 1:00 PM, Kazuo Teramoto <kaz.rag@gmail.com> wrote:
> On Tue, Jun 8, 2010 at 2:33 AM, Allan McRae <allan@archlinux.org> wrote:
>> Check every checksum that makepkg supports rather than only md5sums.
>> Fixes FS#17168.
>>
>> Signed-off-by: Allan McRae <allan@archlinux.org>
>> ---
>>
>> I am sure there has to be some way to loop through all that duplication,
>> but the how escapes me...
>
> getattr?
>
> What about the attached implementation of checksums.py? Note: I dont tested it!
>

Did you attach anything ?
 
Old 06-08-2010, 11:15 AM
Kazuo Teramoto
 
Default Check all checksum types

On Tue, Jun 8, 2010 at 8:09 AM, Xavier Chantry <chantry.xavier@gmail.com> wrote:
>
> Did you attach anything ?
>

Yes, I dont forget! I cant put it on the body, because I'm using the
gmail web interface (and it break lines), but I put a base 64 of it is
at end

and is at http://fma.if.usp.br/~kazuo/checksums.py and
http://paste.pocoo.org/show/223156/ (sha256
bc140424f5c6c4d7b9d41a8ba8feb077ee261492357fba8e42 3efe6a707aa6a9)

=====base 64 start======
IyAKIyBuYW1jYXAgcnVsZXMgLSBjaGVja3N1bX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W5m
by5zb3VyY2UpIDwgbGVuKGdldGF0dHIocGtnaW5mbywgc3Vtbm FtZSkpOgoJCQkJCXJldFswXS5h
cHBlbmQoKCJ0b28tbWFueS1jaGVja3N1bXMgJXMgJWkgbmVlZG VkIiwgKHN1bW5hbWUsIGxlbihw
a2dpbmZvLnNvdXJjZSkpKSkKCQkJCWZvciBzdW0gaW4gZ2V0YX R0cihwa2dpbmZvLCBzdW1uYW1l
KToKCQkJCQlpZiBsZW4oc3VtKSAhPSBzdW1sZW46CgkJCQkJCX JldFswXS5hcHBlbmQoKCJpbXBy
b3Blci1jaGVja3N1bSAlcyAlcyIsIChzdW1uYW1lLCBzdW0pKS kKCgkJcmV0dXJuIHJldAoJZGVm
IHR5cGUoc2VsZik6CgkJcmV0dXJuICJwa2didWlsZCIKIyB2aW 06IHNldCB0cz00IHN3PTQgbm9l
dDoK
=====base 64 end======

--
«Dans la vie, rien n'est ŕ craindre, tout est ŕ comprendre»
Marie Sklodowska Curie.
 

Thread Tools




All times are GMT. The time now is 10:24 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org