jafeha / parabird

Simple script written in python to build an os independent truecrypt encrypted usb-stick containing a portable thunderbird, enigmail, torbirdy and vidalia.
GNU General Public License v3.0
11 stars 7 forks source link

copy from cache nearly ready #29

Closed jojoo- closed 11 years ago

jojoo- commented 11 years ago

fixed some typos on the way as well

to implement it we just have to overwrite the download function

download_application = copy_from_cache

and of course put some logic around that, but for debugging youre good to go.

of course u need ~/.parbirdy/cache/ filled

jafeha commented 11 years ago

i'm having some problems with this merge. utils.py is broken for me:

jakobh@think:~/Dokumente/git/parabird$ sudo python parabird_build.py 
Traceback (most recent call last):
  File "parabird_build.py", line 10, in <module>
    from utils import *
  File "/home/jakobh/Dokumente/git/parabird/utils.py", line 30, in <module>
    parser.set('DEFAULT', 'tmpdir', tempdir)
NameError: name 'parser' is not defined

i tried moving it at the end of parser, didn't solve it for me. moving the whole section fails because tempdir must be defined at the beginning. but even if i move everything back except the parser.set argument, the script fails immediately:

jakobh@think:~/Dokumente/git/parabird$ sudo python parabird_build.py 
[INFO::utils]: Logfile: /tmp/tmpnKKEv_/parabirdy_log.txt
Traceback (most recent call last):
  File "parabird_build.py", line 10, in <module>
    from utils import *
  File "/home/jakobh/Dokumente/git/parabird/utils.py", line 231, in <module>
    parser.set('DEFAULT', 'tmpdir', tempdir)
AttributeError: 'ArgumentParser' object has no attribute 'set'

any easy fix for this?

jojoo- commented 11 years ago

i made some heavy adjustments. see my files, maybe the pull requests is updated as well?