synaptic: fix screenshot debian url
This commit is contained in:
parent
05a0133253
commit
8300ac4bb1
2 changed files with 55 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
30
helpers/make-synaptic
Normal file
30
helpers/make-synaptic
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#!/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
|
||||
BUILD_UNTIL=11.0
|
||||
|
||||
. ./config
|
||||
|
||||
apply_patch_changes
|
||||
|
||||
changelog "Fix synaptic screenshot url issue."
|
||||
|
||||
package
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue