man page gives incorrect default pastebin (should mention distro specific defaults)
Bug #755997 reported by
Scott Kitterman
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pastebinit |
Fix Released
|
Low
|
Unassigned | ||
pastebinit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: pastebinit
man pastebinit says -b [pastebin url] (default: http://
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: pastebinit 1.2-2
ProcVersionSign
Uname: Linux 2.6.38-
Architecture: i386
Date: Sat Apr 9 20:40:26 2011
EcryptfsInUse: Yes
InstallationMedia: Kubuntu 11.04 "Natty Narwhal" - Beta i386 (20110330)
PackageArchitec
ProcEnviron:
LANGUAGE=
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: pastebinit
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
Changed in pastebinit (Ubuntu): | |
status: | New → Confirmed |
Changed in pastebinit: | |
status: | Fix Committed → Fix Released |
Changed in pastebinit (Ubuntu): | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
Well, actually the default upstream pastebin is pastebin.com.
It's overriden for some distros based on LSB information.
defaultPB = "http:// pastebin. com" #Default pastebin get_distro_ information( )['ID'] .lower( ) paste.debian. net" fpaste. org" paste.ubuntu. com"
try:
import lsb_release
release = lsb_release.
if release == 'debian':
defaultPB = "http://
elif release == 'fedora':
defaultPB = "http://
elif release == 'ubuntu':
defaultPB = "http://
except ImportError:
pass
Still worth mentioning in the manpage though.