Merge lp:~kirkland/pastebinit/fix-pbput-pbget into lp:pastebinit

Proposed by Dustin Kirkland 
Status: Merged
Merged at revision: 217
Proposed branch: lp:~kirkland/pastebinit/fix-pbput-pbget
Merge into: lp:pastebinit
Diff against target: 23 lines (+3/-3)
1 file modified
utils/pbput (+3/-3)
To merge this branch: bzr merge lp:~kirkland/pastebinit/fix-pbput-pbget
Reviewer Review Type Date Requested Status
Pastebinit Developers Pending
Review via email: mp+267263@code.launchpad.net

Description of the change

This fixes pbput/pbget, makes it work again.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'utils/pbput'
--- utils/pbput 2012-02-12 23:48:08 +0000
+++ utils/pbput 2015-08-06 21:17:21 +0000
@@ -20,7 +20,7 @@
20# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.20# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
2121
22PROG=$(basename $0)22PROG=$(basename $0)
23URL="http://pastebin.com"23URL="http://paste.ubuntu.com"
24TEMPLATE="$PROG.XXXXXXXXXX"24TEMPLATE="$PROG.XXXXXXXXXX"
25[ -d "$TMPDIR" ] && TEMPLATE="$TMPDIR/$TEMPLATE" || TEMPLATE="/tmp/$TEMPLATE"25[ -d "$TMPDIR" ] && TEMPLATE="$TMPDIR/$TEMPLATE" || TEMPLATE="/tmp/$TEMPLATE"
2626
@@ -31,8 +31,8 @@
3131
32case "$PROG" in32case "$PROG" in
33 pbget)33 pbget)
34 url=$(echo "$1" | sed -e "s:.com/:.com/download.php?i=:")34 url=$(echo "$1")
35 wget -q -O- "$url" | base64 -d | lzma -d > "$TEMP"35 wget -q -O- "$url" | grep -A 999999999 '<div class="paste"><pre>' | grep -B 999999999 "^</pre>" | sed -e "s/.*<pre>//" -e "s/^<\/pre>.*//" | base64 -d | lzma -d > "$TEMP"
36 # Support secure uploads36 # Support secure uploads
37 if gpg -d "$TEMP" >"$TEMP2" 2>/dev/null; then37 if gpg -d "$TEMP" >"$TEMP2" 2>/dev/null; then
38 # Upload was encrypted38 # Upload was encrypted

Subscribers

People subscribed via source and target branches