[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#153283: mklibs: python portability fix?



Package: mklibs
Version: 0.1.2
Severity: minor
Tags: patch


I have a report of the += syntax not working on Redhat 7.2, erroring
like this:

File "scripts/mklibs", line 225
debuglevel += 1
                ^
SyntaxError: invalid syntax

The included patch fixes the problem, I don't know what python version
was failing, whatever came with redhat 7.2 (not my machine and that
particular version doesn't support -V).

-David


Index: mklibs.py
===================================================================
RCS file: /cvs/debian-boot/mklibs/mklibs.py,v
retrieving revision 1.1.1.1
diff -u -b -B -w -p -u -r1.1.1.1 mklibs.py
--- mklibs.py	2002/06/11 19:58:46	1.1.1.1
+++ mklibs.py	2002/07/17 14:49:50
@@ -225,7 +225,7 @@ script_pattern = re.compile("^#!\s*/")
 for opt, arg in optlist:
     if opt in ("-v", "--verbose"):
         if debuglevel < DEBUG_SPAM:
-            debuglevel += 1
+            debuglevel = debuglevel + 1
     elif opt == "-L":
         lib_path = string.split(arg, ":")
     elif opt in ("-d", "--dest-dir"):
 
-- System Information:
Debian Release: 3.0
Architecture: i386
Kernel: Linux oink 2.4.18 #31 Fri May 31 09:20:28 PDT 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages mklibs depends on:
ii  python                        2.1.3-3    An interactive object-oriented scr

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-boot-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: