synaptic: fix screenshot and match apt 3.0 upgrade.

This commit is contained in:
Ark74 2025-12-25 23:19:08 -06:00
parent d27d3c5e9b
commit 9b27956b30
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,25 @@
From 74f37ee5727f50f4175dbba9744391e3245e7982 Mon Sep 17 00:00:00 2001
From: "I.Rezkov" <fagothmail@gmail.com>
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;

32
helpers/make-synaptic Normal file
View file

@ -0,0 +1,32 @@
#!/bin/sh
#
# Copyright (C) 2025 Luis Guzmán <ark@switnet.org>
#
# 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
EXTERNAL='deb-src http://archive.ubuntu.com/ubuntu resolute universe'
REPOKEY=871920D1991BC93C
BUILD_UNTIL=12.0
. ./config
apply_patch_changes
changelog "Upgrade Ecne's version to manage apt 3.0 upgrade"
package