Home_greyopenFATE - openSUSE feature tracking > #310201
Dashboard | Search | Sign up | Login

Please login or register to be able to edit or vote this feature.

Include a pastebin script in the distribution

Feature state

Package Wishlist


It would help tremendously if we would include a pastebin script (e.g. pastebinit, which is in network:utilities and Contrib) in the stock distribution. Given that it is really small, we ought to include it in the core patterns (i.e. always install it).

Point being that we very, very often ask people who come with questions on our IRC support channel (#opensuse on freenode) to pastebin output of commands or files, and having something like pastebinit would make that even easier.

But that's pointless (making it easier) if we have to guide them through adding a repository and installing pastebinit first. Hence including it into the distribution.


icons/user_comment.png D. P. wrote: (8 years ago)

hi there,

i have my own pastebin.pl script which works pretty nice, a lot of people are using it and i have never had get reported any problem other then feature request ..

you can find script here:

regards, daniel

icons/user_comment.png P. B. wrote: (8 years ago)

Having reviewed your script, I'd have the following remarks

  • it has less features, as it doesn't support several pastebin sites (pastebinit does, in a plugin-like manner)
  • the code quality is quite inferior, as itĀ lacks proper error handling in many places, doesn't properly handle temporary files/directories (fixed temporary file name, instead of using mktemp), nor their cleanup (should use an EXIT handler function with trap)

So I don't see any reason for using that instead of a properly upstream maintained and more featureful pastebinit ;)

icons/user_comment.png M. H. wrote: (8 years ago)

I agree, that pastebinit has some additional features over selfmade shell script, but it has some downsides as well. It's written in python, which is nontrivial dependency. At least I have machines where I don't need python (I'm not sure whether I have it installed, but if I do, it's only because I was too lazy to check dependencies) and having to install it just because core pattern contains pastebinit in python.... On the other hand we probably already have python somewhere deep inside our system (osc, scout, ...).

I would vote to include simple shell pastebin script in core and pastebinit maybe as an extension, but certainly some easy pastebin script can be usefull.

icons/user_comment.png D. P. wrote: (8 years ago)


^^^ hahahahaha .. it's excellent stuff .. isn't it ;)

icons/user_comment.png D. P. wrote: (8 years ago)

well Pascal .. i checked a code and features of pastebinit Vs my pastebin.pl ..

you hate perl .. right? sorry, but pastebinit is poor however it has error handling or whatever else ;) .. i now understand why people who are using my pastebin script although it supports only one site and so feeds back to me thanks and theirs satisfaction.

regards, daniel

icons/user_comment.png D. P. wrote: (8 years ago)

hmm .. ok pascal

just for your information .. i've written this script for my own with no real need for features you've listed above .. just don't use it if you don't like it ..


icons/user_comment.png P. B. wrote: (7 years ago)

One way or another, and nevermind which tool we use, we really should have *some* pastebin script included in the base distribution (that is: always installed).
If people have to jump through hoops to add a repository and install additional packages, it'll be yet another annoyance to be able to help them when they're asking for help on IRC.
Arguably, the lighter weighter, the better (that is, a minimal set of dependencies) and your script only requires Perl.
Nevertheless, to include your script -- as discussed on IRC today -- we'd need to have it in a source code repository (googlecode, sourceforge, github or, probably the best option, in the openSUSE gitorious repository (*)), in order for other people to be able to review and contribute enhancements or fixes, as well as to have proper versions.

(*) http://gitorious.com/opensuse/

Last change: 7 years ago
Loading tags...
Feature Export
Application-xmlXML   Text-x-logPlaintext   PrinterPrint