man page gives incorrect default pastebin (should mention distro specific defaults)

Bug #755997 reported by Scott Kitterman
14
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://pastebin.com). The default is acutally paste.ubuntu.com.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: pastebinit 1.2-2
ProcVersionSignature: Ubuntu 2.6.38-8.41-generic-pae 2.6.38.2
Uname: Linux 2.6.38-8-generic-pae i686
Architecture: i386
Date: Sat Apr 9 20:40:26 2011
EcryptfsInUse: Yes
InstallationMedia: Kubuntu 11.04 "Natty Narwhal" - Beta i386 (20110330)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: pastebinit
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Scott Kitterman (kitterman) wrote :
Changed in pastebinit (Ubuntu):
status: New → Confirmed
Revision history for this message
Stéphane Graber (stgraber) wrote :

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
try:
    import lsb_release
    release = lsb_release.get_distro_information()['ID'].lower()
    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

Still worth mentioning in the manpage though.

Changed in pastebinit:
importance: Undecided → Low
status: New → Triaged
summary: - man page gives incorrect default pastebin
+ man page gives incorrect default pastebin (should mention distro
+ specific defaults)
Revision history for this message
Rolf Leggewie (r0lf) wrote :

I've fixed this in upstream revision 124. Should be available in the next upstream release.

Changed in pastebinit:
status: Triaged → Fix Committed
Changed in pastebinit:
status: Fix Committed → Fix Released
Changed in pastebinit (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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