04b9978a29
* wine is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
16 lines
484 B
Diff
16 lines
484 B
Diff
=== modified file 'curses/wicd-curses.py'
|
|
--- a/curses/wicd-curses.py 2014-12-21 16:57:33 +0000
|
|
+++ b/curses/wicd-curses.py 2015-02-24 23:41:01 +0000
|
|
@@ -532,7 +532,10 @@
|
|
def get_selected_profile(self):
|
|
"""Get the selected wired profile"""
|
|
loc = self.get_focus()[1]
|
|
- return self.theList[loc]
|
|
+ if len(self.theList) > loc:
|
|
+ return self.theList[loc]
|
|
+ else:
|
|
+ return self.theList[-1]
|
|
|
|
|
|
class AdHocDialog(Dialog2):
|
|
|