Bug#675228: Use http://paste.debian.net by default
Damyan Ivanov
dmn at debian.org
Sun Sep 16 07:14:28 UTC 2012
-=| Salvatore Bonaccorso, 16.09.2012 00:54:45 +0200 |=-
> Hi Wolodja
>
> On Wed, May 30, 2012 at 05:12:13PM +0100, Wolodja Wentland wrote:
> > Package: libapp-nopaste-perl
> > Version: 0.33-1
> > Severity: wishlist
> >
> > nopaste currently uploads pastes to http://pastie.org by default. Users have
> > to set the NOPASTE_SERVICES environment variable to 'Debian' in order to change
I looked in the code and I couldn't find where this default comes
from. To me it seems that all available services are tried in turn, in
the order they are returned by the file system (via File::Find, used
by Module::Pluggable).
> > this permanently which is just cumbersome. It would, IMHO, make sense to change
> > the default to http://paste.debian.net as it is the pastebin most closely
> > associated with Debian.
> I have looked at your request. I think something like the attached
> patch would do it. *But*, I'm unsure it is a good idea.
>
> On one side we would need to refresh/update always Nopaste.pm if there
> is achange and keep our patch in sync. This is not a big deal if the
> attached works.
>
> But the second is that this affects e.g. Ubuntu as downstream. They
> will now then also be forced to use paste.debian.net unless too
> patched.
These are real concerns.
To me it seems that a two-patch approach would help.
The first patch would introduce the concept of a "vendor-default
service", using say a $VENDOR_DEFAULT variable, which is left
undefined in the first patch. This patch should be suitable for
inclusion upstream, as it would change nothing by default. Am not sure
if it would make the code use $VENDOR_DEFAULT only or reorder the
available services to try $VENDOR_DEFAULT first.
The second patch would be different for each vendor (debian/ubuntu/…),
not to be sent upstream and would define the $VENDOR_DEFAULT variable
suitably.
I admit the above seems a bit complex, but hopefully not too much.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20120916/953ba508/attachment.pgp>
More information about the pkg-perl-maintainers
mailing list