Package: pastebinit
Version: 1.4-4
Severity: important

Dear Maintainer,

paste.debian.net now defaults to https which breaks pastebinit. Please
consider the attached patch which switches the default pastebin from
http to https. Please also update the package in jessie so that pastebinit
becomes useful once more.

thanks!
Stuart


-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (550, 'stable-updates'), (550, 'proposed-updates'), (550, 
'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages pastebinit depends on:
ii  python3  3.4.2-2

Versions of packages pastebinit recommends:
ii  lsb-release  4.1+Debian13+nmu1

pastebinit suggests no packages.

-- no debconf information
>From 390658baf0d8e3f5140b34a70a22de8fe94ed022 Mon Sep 17 00:00:00 2001
From: Stuart Prescott <stu...@debian.org>
Date: Mon, 21 Sep 2015 00:37:10 +1000
Subject: [PATCH] Switch paste.debian.net to https

---
 debian/patches/detect_distro_with_python3.patch | 8 +++-----
 pastebin.d/paste.debian.net.conf                | 2 +-
 pastebinit                                      | 4 ++--
 3 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/debian/patches/detect_distro_with_python3.patch b/debian/patches/detect_distro_with_python3.patch
index e0737c3..9904844 100644
--- a/debian/patches/detect_distro_with_python3.patch
+++ b/debian/patches/detect_distro_with_python3.patch
@@ -1,7 +1,5 @@
-Index: pastebinit/pastebinit
-===================================================================
---- pastebinit.orig/pastebinit	2015-02-16 12:37:04.434846203 -0500
-+++ pastebinit/pastebinit	2015-02-16 12:39:22.709104460 -0500
+--- a/pastebinit
++++ b/pastebinit
 @@ -37,8 +37,8 @@
  
  # Now try to override it with a distributor pastebin
@@ -11,5 +9,5 @@ Index: pastebinit/pastebinit
 +    import platform
 +    release = platform.linux_distribution()[0].lower()
      if release == 'debian':
-         defaultPB = "http://paste.debian.net";
+         defaultPB = "https://paste.debian.net";
      elif release == 'fedora':
diff --git a/pastebin.d/paste.debian.net.conf b/pastebin.d/paste.debian.net.conf
index 187d925..0c34e8c 100644
--- a/pastebin.d/paste.debian.net.conf
+++ b/pastebin.d/paste.debian.net.conf
@@ -1,6 +1,6 @@
 [pastebin]
 basename = paste.debian.net
-regexp = http://paste.debian.net
+regexp = https://paste.debian.net
 
 [format]
 user = poster
diff --git a/pastebinit b/pastebinit
index 29704a0..a78e188 100755
--- a/pastebinit
+++ b/pastebinit
@@ -37,7 +37,7 @@ try:
     import lsb_release
     release = lsb_release.get_distro_information()['ID'].lower()
     if release == 'debian':
-        defaultPB = "http://paste.debian.net";
+        defaultPB = "https://paste.debian.net";
     elif release == 'fedora':
         defaultPB = "http://fpaste.org";
     elif release == 'ubuntu':
@@ -236,7 +236,7 @@ try:
     #Example configuration file string
     configexample = """\
 <pastebinit>
-<pastebin>http://paste.debian.net</pastebin>
+<pastebin>https://paste.debian.net</pastebin>
 <author>A pastebinit user</author>
 <jabberid>nob...@nowhere.org</jabberid>
 <format>text</format>
-- 
2.1.4

Reply via email to