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
|