Skip to content

Commit

Permalink
Update the package before universe
Browse files Browse the repository at this point in the history
  • Loading branch information
stgraber committed Jan 2, 2007
1 parent cd39fcc commit fac1b71
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 18 deletions.
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pastebinit (0.6-0ubuntu1) feisty; urgency=low
* New version upstream
- change the default Pastebin
- add two pastebins
- fix a bug with paste.ubuntu-nl.org
- remove paste.ubuntu-nl.org because of the anti-spam javascript
- add support of regexp

-- Stéphane Graber <stgraber@stgraber.org> Thu, 07 Dec 2006 20:58:31 +0100
Expand Down
1 change: 0 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ Description: A command line pastebin client
a file passed as argument directly to a pastebin.
Actually supported Pastebins :
http://paste.stgraber.org
http://paste.ubuntu-nl.org
http://pastebin.com
http://pastebin.ca
26 changes: 12 additions & 14 deletions pastebinit
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import urllib, os, sys, re
defaultPB="http://paste.stgraber.org" #Default pastebin
version="0.7" #Version number to show in the usage
version="0.6" #Version number to show in the usage

#Return the parameters depending of the pastebin used
def getParameters(website,content,user,version):
Expand All @@ -36,20 +36,18 @@ def getParameters(website,content,user,version):
params['remember']="0" #Do you want a cookie ?
params['expiry']="f" #The expiration, f = forever
params['regexp']="None"
elif website == "http://paste.ubuntu-nl.org":
params['poster']=user
params['content']=content
params['syntax']="text" #The format, for syntax hilighting
params['regexp']="None"
elif re.search("http://.*\.pastebin\.com", website):
params['poster']=user
params['code2']=content
params['parent_pid']="" #For reply, "" means homepage (new thread)
params['format']="text" #The format, for syntax hilighting
params['paste']="Send"
params['remember']="0" #Do you want a cookie ?
params['expiry']="f" #The expiration, f = forever
params['regexp']="None"
if website != "http://www.pastebin.com":
params['poster']=user
params['code2']=content
params['parent_pid']="" #For reply, "" means homepage (new thread)
params['format']="text" #The format, for syntax hilighting
params['paste']="Send"
params['remember']="0" #Do you want a cookie ?
params['expiry']="f" #The expiration, f = forever
params['regexp']="None"
else:
sys.exit("Incorrect pastebin.")
elif website == "http://pastebin.com":
params['poster']=user
params['code2']=content
Expand Down
2 changes: 0 additions & 2 deletions pastebinit.1
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ http://paste.stgraber.org
http://*.pastebin.com
.RE
http://pastebin.ca
.RE
http://paste.ubuntu-nl.org
.SH BUGS
.RS
.RE
Expand Down

0 comments on commit fac1b71

Please sign in to comment.