Feature changed by: Pascal Bleser (pbleser) Feature #310201, revision 8 Title: Include a pastebin script in the distribution Package Wishlist: Unconfirmed Priority Requester: Desirable Requested by: Pascal Bleser (pbleser) Partner organization: openSUSE.org Description: 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. Discussion: #1: Daniel Pecka (dpecka) (2010-07-22 09:59:48) 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: http://pastebin.ca/1905845 (http://pastebin.ca/1905845) regards, daniel #2: Pascal Bleser (pbleser) (2010-07-24 13:21:24) (reply to #1) 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 ;) #4: Michal Hrusecky (-miska-) (2010-07-27 11:50:52) (reply to #2) 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. #5: Daniel Pecka (dpecka) (2010-07-27 11:55:35) (reply to #2) http://pastebin.ca/1909182 ^^^ hahahahaha .. it's excellent stuff .. isn't it ;) #6: Daniel Pecka (dpecka) (2010-07-27 12:08:04) (reply to #2) 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 #3: Daniel Pecka (dpecka) (2010-07-27 11:47:27) 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 .. regards + #7: Pascal Bleser (pbleser) (2010-12-29 00:14:41) + 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/ -- openSUSE Feature: https://features.opensuse.org/310201