From 8300ac4bb19cb4b268667fb72cc00c1a7c31cd68 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Thu, 25 Dec 2025 23:28:30 -0600 Subject: [PATCH] synaptic: fix screenshot debian url --- .../001-158_fix_downloading_screenshots.patch | 25 ++++++++++++++++ helpers/make-synaptic | 30 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 helpers/DATA/synaptic/patch_changes/001-158_fix_downloading_screenshots.patch create mode 100644 helpers/make-synaptic diff --git a/helpers/DATA/synaptic/patch_changes/001-158_fix_downloading_screenshots.patch b/helpers/DATA/synaptic/patch_changes/001-158_fix_downloading_screenshots.patch new file mode 100644 index 0000000..3c22417 --- /dev/null +++ b/helpers/DATA/synaptic/patch_changes/001-158_fix_downloading_screenshots.patch @@ -0,0 +1,25 @@ +From 74f37ee5727f50f4175dbba9744391e3245e7982 Mon Sep 17 00:00:00 2001 +From: "I.Rezkov" +Date: Fri, 31 Oct 2025 21:06:08 +0300 +Subject: [PATCH] fix downloading screenshots + +--- + common/rpackage.cc | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/common/rpackage.cc b/common/rpackage.cc +index 834b199d..3b40fbc2 100644 +--- a/common/rpackage.cc ++++ b/common/rpackage.cc +@@ -949,9 +949,9 @@ string RPackage::getScreenshotFile(pkgAcquire *fetcher, bool thumb) + verstr=string(verstr, verstr.find(':')+1); + char uri[512]; + if(thumb) +- snprintf(uri,512,"http://screenshots.debian.net/thumbnail/%s", name()); ++ snprintf(uri,512,"https://screenshots.debian.net/thumbnail/%s", name()); + else +- snprintf(uri,512,"http://screenshots.debian.net/screenshot/%s", name()); ++ snprintf(uri,512,"https://screenshots.debian.net/screenshot/%s", name()); + + //cerr << "uri is: " << uri << endl; + diff --git a/helpers/make-synaptic b/helpers/make-synaptic new file mode 100644 index 0000000..94d1bc3 --- /dev/null +++ b/helpers/make-synaptic @@ -0,0 +1,30 @@ +#!/bin/sh +# +# Copyright (C) 2025 Luis Guzmán +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# + +VERSION=0 +BUILD_UNTIL=11.0 + +. ./config + +apply_patch_changes + +changelog "Fix synaptic screenshot url issue." + +package +