From 6074ed832cc6a972276df367fbef07cbfa07da95 Mon Sep 17 00:00:00 2001 From: Graham Weldon Date: Sat, 8 Sep 2012 00:46:10 +1000 Subject: [PATCH 1/2] Fixed mised spacing (replaced spaces with tabs). --- raspiwrite.py | 56 +++++++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/raspiwrite.py b/raspiwrite.py index 054f93a..aad28b8 100755 --- a/raspiwrite.py +++ b/raspiwrite.py @@ -11,8 +11,8 @@ # .kkx0NXk'...dNNxldK' # 'k...0o....,O...d: # ;o;'oM0olkWc.;oc -# .cOx....dOl. -# .x00k. +# .cOx....dOl. +# .x00k. #//////////////////////////// # * Raspberry Pi SD Writer @@ -22,17 +22,17 @@ # Copyright Matthew Jump 2012 # The following code is licenced under the Gnu Public Licence, please see gpl.txt for reference # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by +# it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# (at your option) any later version. # -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . # VERSION 1.15 -MACOSX- (June 2012) BETA # * Fix to unzipping system - credit to alecthegeek @@ -84,8 +84,8 @@ def checkforUpdate(): ''' except urllib2.URLError, e: - print """There was an error in checking for an update: %r - """ % e + print """There was an error in checking for an update: %r + """ % e def grabRoot(distro): #Parses the raspberry pi downloads page for the links for the currently RasPiWrite supported distros @@ -103,8 +103,8 @@ def getZipUrl(url): #gets all the urls that end in .zip or .tar.bz2 (only two di htmlSource = urllib2.urlopen(url).read() linksList = re.findall(' Date: Sat, 8 Sep 2012 00:46:47 +1000 Subject: [PATCH 2/2] Added colon for else statement.. wtf. --- raspiwrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raspiwrite.py b/raspiwrite.py index aad28b8..c68a95d 100755 --- a/raspiwrite.py +++ b/raspiwrite.py @@ -174,7 +174,7 @@ def run ( self ): global path if OS[0] != 'Darwin': copyString = 'dd bs=1M if=%s of=%s' % (path,SDsnip) - else + else: copyString = 'dd bs=1m if=%s of=%s' % (path,SDsnip) print 'Running ' + copyString + '...'