diff options
author | Chris Severance | 2017-07-05 15:26:59 -0400 |
---|---|---|
committer | Chris Severance | 2017-07-05 15:26:59 -0400 |
commit | c5ac9c286f489b9ef73644580876a96f840f261e (patch) | |
tree | a78b34b10a19ea12af3d12f4c821cb8b95a7490a /dmupdate.py.usage.patch | |
parent | b100308d2ffecb335f3813ef399f240f28db71cf (diff) | |
download | aur-c5ac9c286f489b9ef73644580876a96f840f261e.tar.gz |
Fix signal_pending kernel 4.11
Diffstat (limited to 'dmupdate.py.usage.patch')
-rw-r--r-- | dmupdate.py.usage.patch | 60 |
1 files changed, 24 insertions, 36 deletions
diff --git a/dmupdate.py.usage.patch b/dmupdate.py.usage.patch index 05cc640a4826..6d262d5d6fa7 100644 --- a/dmupdate.py.usage.patch +++ b/dmupdate.py.usage.patch @@ -1,36 +1,24 @@ -*** dmupdate.py.orig Tue Dec 20 17:11:29 2016 ---- dmupdate.py Tue Dec 20 17:15:37 2016 -*************** -*** 257,268 **** - del args[0] - - if e is None: - e = b - -! host = args[0] -! filename = args[1] - - if not zipfile.is_zipfile(filename): - binfile = open(filename,"rb") - else: - archsuffix = {3:".bin", 5:".nxbin"} ---- 257,275 ---- - del args[0] - - if e is None: - e = b - -! try: -! host = args[0] -! filename = args[1] -! except: -! print "Usage: dmupdate.py [-rqsg] [-b <addr] [-e <addr>] <hostname> <filename>" -! print "filename as .cmtl is preferred. .bin (ARM7) and .nxbin (Cortex-M) also work" -! print "For more help:" -! print "less +96 -S /usr/share/nslink/README.txt" -! sys.exit(1) - - if not zipfile.is_zipfile(filename): - binfile = open(filename,"rb") - else: - archsuffix = {3:".bin", 5:".nxbin"} +--- dmupdate.py.orig 2017-07-04 06:21:14.850810096 -0400 ++++ dmupdate.py 2017-07-04 06:21:14.854143781 -0400 +@@ -257,12 +257,19 @@ while args and args[0].startswith('-'): + del args[0] + + if e is None: + e = b + +-host = args[0] +-filename = args[1] ++try: ++ host = args[0] ++ filename = args[1] ++except: ++ print "Usage: dmupdate.py [-rqsg] [-b <addr] [-e <addr>] <hostname> <filename>" ++ print "filename as .cmtl is preferred. .bin (ARM7) and .nxbin (Cortex-M) also work" ++ print "For more help:" ++ print "less +96 -S /usr/share/nslink/README.txt" ++ sys.exit(1) + + if not zipfile.is_zipfile(filename): + binfile = open(filename,"rb") + else: + archsuffix = {3:".bin", 5:".nxbin"} |