Support for http://pastebin.archlinux.org

Bug #184276 reported by Xilon
2
Affects Status Importance Assigned to Milestone
pastebinit
Fix Released
Undecided
Unassigned

Bug Description

This patch is not by me, but I would like to see it implemented upstream.

--- a/pastebinit-0.7.py 2008-01-19 18:33:05.000000000 +0900
+++ b/pastebinit-0.7.py 2008-01-19 18:36:30.000000000 +0900
@@ -17,6 +17,9 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

+# Modified by Sashi:
+# Added support for Archlinux's pastebin
+
 import urllib, os, sys, re, getopt, select

 defaultPB = "http://paste.stgraber.org" #Default pastebin
@@ -62,6 +65,15 @@
  params['save'] = "0" #Do you want a cookie ?
  params['s'] = "Submit Post"
  params['regexp'] = '">http://pastebin.ca/(.*)</a></p><p>'
+ elif website == "http://pastebin.archlinux.org":
+ params['poster']=user
+ params['code2']=content
+ params['format']="text" #The format, for syntax hilighting
+ params['homosapien']="1"
+ params['paste']="Send"
+ params['remember']="0" #Do you want a cookie ?
+ params['expiry']="f" #The expiration, f = forever
+ params['regexp']="None"
     else:
  sys.exit("Unknown website, please post a bugreport to request this pastebin to be added (" + website + ")")
     return params

Revision history for this message
Xilon (xilonmu) wrote :

Didn't see a patch upload form, here's the patch attatched.

Revision history for this message
Stéphane Graber (stgraber) wrote : Re: [Bug 184276] Re: Support for http://pastebin.archlinux.org

Xilon wrote:
> Didn't see a patch upload form, here's the patch attatched.
>
> ** Attachment added: "archlinux pastebin support"
> http://launchpadlibrarian.net/11439243/archlinux-support.patch
>
>
Thank you for your patch.
I'm doing a code update of pastebinit, a test release will be uploaded
to bazaar soon for testing and will then be packaged and uploaded in Hardy.

Stéphane

Revision history for this message
Stéphane Graber (stgraber) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Xilon wrote:
> Didn't see a patch upload form, here's the patch attatched.
>
> ** Attachment added: "archlinux pastebin support"
> http://launchpadlibrarian.net/11439243/archlinux-support.patch
>
>
Thank you for your patch.
I'm doing a code update of pastebinit, a test release will be uploaded
to bazaar soon for testing and will then be packaged and uploaded in Hardy.

Stéphane

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHnj6hjxyfqkjBhuwRAr51AJwP2G7+FEJ+pgyIwUxGonNbrq7ieACfSeUR
sR40XoCUAEmazpU+G9cKkMc=
=2+nJ
-----END PGP SIGNATURE-----

Revision history for this message
Stéphane Graber (stgraber) wrote :

Fixed in rev32

Changed in pastebinit:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.