```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 ```
12 lines
633 B
Diff
12 lines
633 B
Diff
# upstream: yes
|
|
--- a/tremc
|
|
+++ b/tremc
|
|
@@ -438,7 +438,7 @@ class Transmission(object):
|
|
# TAG_TORRENT_DETAILS, but just passing seems to help.(?)
|
|
try:
|
|
torrent_details = response['arguments']['torrents'][0]
|
|
- torrent_details['pieces'] = base64.decodestring(bytes(torrent_details['pieces'], ENCODING))
|
|
+ torrent_details['pieces'] = base64.decodebytes(bytes(torrent_details['pieces'], ENCODING))
|
|
self.torrent_details_cache = torrent_details
|
|
self.upgrade_peerlist()
|
|
except IndexError:
|