Skip to content

Commit

Permalink
pastebinit: add support for Fedora to default PB switcher code
Browse files Browse the repository at this point in the history
reorder alphabetically: Debian, Fedora, Ubuntu
  • Loading branch information
leggewie committed Jan 10, 2011
1 parent a68c843 commit c1759af
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pastebinit
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ defaultPB = "http://pastebin.com" #Default pastebin
try:
import lsb_release
release = lsb_release.get_distro_information()['ID'].lower()
if release == 'ubuntu':
defaultPB = "http://paste.ubuntu.com"
elif release == 'debian':
if release == 'debian':
defaultPB = "http://paste.debian.net"
elif release == 'fedora':
defaultPB = "http://fpaste.org"
elif release == 'ubuntu':
defaultPB = "http://paste.ubuntu.com"
except ImportError:
pass

Expand Down

0 comments on commit c1759af

Please sign in to comment.