Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed a problem with handling gzip files #5

Merged
merged 2 commits into from

2 participants

Alec Clews exaviorn
Alec Clews

There seem to be a few problems around handling gzip files. here are a couple of fixes

(First fix also helps b2zip files)

Matt Jump exaviorn merged commit 1bc9e89 into from
Matt Jump
Owner

Thanks! Gzip implementation was something that was rushed in, I essentially re-used the zip support code and obviously forgot to change the zip to gzip when passing through to transfer!

I've merged your code enhancements and fixes, I aim to release an update fixing this bug, along with a few more small documentation changes later today (all users 1.1 will be alerted of the update through the script)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 6 deletions.
  1. +6 −6 raspiwrite.py
12 raspiwrite.py 100644 → 100755
View
@@ -340,12 +340,12 @@ def getImage(SD): #gives the user a bunch of options to download an image, or se
print 'Found Zip'
#findDL('debian')
transfer(userLocate,'zip','usr',SD,'none')
- if matchGzip is not None:
- print 'found Gzip'
- transfer(userLocate, 'zip', 'usr',SD,'none')
- if matchBzip is not None:
- print 'found Bz2'
- transfer(userLocate, 'bz2', 'usr',SD,'none')
+ if matchGzip is not None:
+ print 'found Gzip'
+ transfer(userLocate, 'gz', 'usr',SD,'none')
+ if matchBzip is not None:
+ print 'found Bz2'
+ transfer(userLocate, 'bz2', 'usr',SD,'none')
else:
Something went wrong with that request. Please try again.