File: adjust-libapt-pkg7.0.patch

package info (click to toggle)
aptitude 0.8.13-8
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 40,556 kB
  • sloc: cpp: 95,285; xml: 31,928; sh: 5,160; makefile: 923; perl: 109; cs: 70; lisp: 55; sed: 16
file content (34 lines) | stat: -rw-r--r-- 1,230 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From a66e45a80979e85484ddda29e88948c0820dd934 Mon Sep 17 00:00:00 2001
From: Julian Andres Klode <juliank@ubuntu.com>
Date: Sat, 15 Feb 2025 19:46:29 +0100
Subject: [PATCH] Adjust for ABI break in libapt-pkg7.0

---
 src/generic/apt/pkg_acqfile.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/generic/apt/pkg_acqfile.cc b/src/generic/apt/pkg_acqfile.cc
index 4a4da6fa..ec179e70 100644
--- a/src/generic/apt/pkg_acqfile.cc
+++ b/src/generic/apt/pkg_acqfile.cc
@@ -76,7 +76,7 @@ bool get_archive(pkgAcquire *Owner, pkgSourceList *Sources,
       StoreFilename = QuoteString(Version.ParentPkg().Name(),"_:") + '_' +
 	QuoteString(Version.VerStr(),"_:") + '_' +
 	QuoteString(Version.Arch(),"_:.") + 
-	"." + flExtension(Parse.FileName());
+	"." + std::string{flExtension(Parse.FileName())};
     }
 
    for (; Vf.end() == false; Vf++)
@@ -104,7 +104,7 @@ bool get_archive(pkgAcquire *Owner, pkgSourceList *Sources,
 			       Version.ParentPkg().FullName().c_str());
 	}
 
-      std::string DestFile = directory + "/" + flNotDir(StoreFilename);
+      std::string DestFile = directory + "/" + std::string{flNotDir(StoreFilename)};
 
       // Create the item
       new pkgAcqFile(Owner,
-- 
2.47.1