From 9544f111f3821dbc0e3a8b18715bc543dcc4961c Mon Sep 17 00:00:00 2001 From: Pablo Astigarraga Date: Wed, 7 Nov 2012 20:05:58 -0200 Subject: [PATCH 1/2] Someone didn't test their last commit. --- raspiwrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raspiwrite.py b/raspiwrite.py index 054f93a..af77eeb 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 + '...' From 75a55d20c0f729529520d2f468d8976e039ae8a5 Mon Sep 17 00:00:00 2001 From: Pablo Astigarraga Date: Wed, 7 Nov 2012 20:10:48 -0200 Subject: [PATCH 2/2] And more syntax problems. --- raspiwrite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raspiwrite.py b/raspiwrite.py index af77eeb..c33bf67 100755 --- a/raspiwrite.py +++ b/raspiwrite.py @@ -272,10 +272,10 @@ def transfer(file,archiveType,obtain,SD,URL): #unzips the disk image SDsnip = "/dev/mmcblk" + SD[11] else: if OS[0] != 'Darwin': - SDsnip = SD.replace(' ', '')[:-1] + SDsnip = SD.replace(' ', '')[:-1] else: # remove weird partition notation in OS X partition names - SDsnip = SD.replace(' ', '')[:-2] + SDsnip = SD.replace(' ', '')[:-2] print path print '\n\n###################################################################'