Anonymous avatar Anonymous committed cbe4983

Rebuild wicd to fix a bugs https://bugs.launchpad.net/wicd/+bug/993912

Signed-off-by: Lee Pak Hong <benreilly@vector.Linux.net>;

Comments (0)

Files changed (2)

var/vabs/wicd/src/patches/dbus_string_fix.patch

+=== modified file 'wicd/misc.py'
+--- a/wicd/misc.py	2012-04-30 19:20:47 +0000
++++ b/wicd/misc.py	2012-05-03 16:01:49 +0000
+@@ -430,7 +430,10 @@
+     """ Sanitize property names to be used in config-files. """
+     allowed = string.ascii_letters + '_' + string.digits
+     table = string.maketrans(allowed, ' ' * len(allowed))
+-    return s.translate(None, table)
++
++    # s is a dbus.String -- since we don't allow unicode property keys,
++    # make it simple.
++    return str(s).translate(None, table)
+ 
+ def sanitize_escaped(s):
+     """ Sanitize double-escaped unicode strings. """

var/vabs/wicd/src/wicd.SlackBuild

 
 #SYSTEM VARIABLES
 #----------------------------------------------------------------------------
-BUILDNUM=${BUILDNUM:-"1"}
+BUILDNUM=${BUILDNUM:-"2"}
 VL_VERSION=${VL_VERSION:-"$(ls /var/log/packages/|grep vlconfig2|cut -d "-" -f4|cut -c 2-5)"}
 BUILD=${BUILD:-"$BUILDNUM""$VL_VERSION"}
 ARCH=${ARCH:-"$(uname -m)"}
 # your patches use the -p1 strip option!
 #-----------------------------------------------------
 for i in $CWD/patches/*;do
-  patch -p1 <$i
+#  patch -p1 <$i
   mkdir -p $PKG/usr/doc/$NAME-$VERSION/patches/
   cp $i $PKG/usr/doc/$NAME-$VERSION/patches/
 done
 #-----------------------------------------------------
- 
- 
+
+# https://bugs.launchpad.net/wicd/+bug/993912
+patch -p1 < $CWD/patches/dbus_string_fix.patch || exit 1 
 
 #SET PERMISSIONS
 #-----------------------------------------
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.