49cb564d14
* par 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 ```
22 lines
492 B
Diff
22 lines
492 B
Diff
--- a/src/spy/pcsc-spy 2019-12-26 20:48:20.222069705 +0700
|
|
+++ b/src/spy/pcsc-spy 2019-12-26 20:48:41.407288561 +0700
|
|
@@ -1,4 +1,4 @@
|
|
-#! /usr/bin/python
|
|
+#!/usr/bin/python3
|
|
|
|
"""
|
|
# Display PC/SC functions arguments
|
|
@@ -22,12 +22,7 @@
|
|
import os
|
|
import signal
|
|
import time
|
|
-try:
|
|
- # for Python3
|
|
- from queue import Queue
|
|
-except ImportError:
|
|
- # for Python2
|
|
- from Queue import Queue
|
|
+from queue import Queue
|
|
from threading import Thread
|
|
from operator import attrgetter
|
|
|