electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit af045b47c0dd9b66f75205076b20aeb5b2a23f8b
parent e290ea66c3a78172ba73157214c7583a982bae94
Author: ThomasV <thomasv@gitorious>
Date:   Mon, 16 Dec 2013 22:19:23 +0100

add password to script

Diffstat:
Mmake_packages | 13+++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/make_packages b/make_packages @@ -38,11 +38,16 @@ if __name__ == '__main__': e4a_name = "e4a-%s.zip"%version e4a_name2 = e4a_name.replace(".","") os.system( "mv %s %s"%(e4a_name, e4a_name2) ) - os.chdir("..") - md5_tgz = hashlib.md5(file('dist/'+_tgz, 'r').read()).digest().encode('hex') - md5_zip = hashlib.md5(file('dist/'+_zip, 'r').read()).digest().encode('hex') - md5_android = hashlib.md5(file('dist/'+e4a_name2, 'r').read()).digest().encode('hex') + import getpass + password = getpass.getpass("Password:") + for f in os.listdir("."): + os.system( "gpg --sign --armor --detach --passphrase \"%s\" %s"%(password, f) ) + + md5_tgz = hashlib.md5(file(_tgz, 'r').read()).digest().encode('hex') + md5_zip = hashlib.md5(file(_zip, 'r').read()).digest().encode('hex') + md5_android = hashlib.md5(file(e4a_name2, 'r').read()).digest().encode('hex') + os.chdir("..") print "" print "Packages are ready:"