File: apt-1.9.patch

package info (click to toggle)
apt-move 4.2.27-6
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 516 kB
  • sloc: sh: 7,946; awk: 275; cpp: 235; perl: 170; makefile: 69
file content (34 lines) | stat: -rw-r--r-- 980 bytes parent folder | download
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
Description: Port to apt 1.9
 Minor changes
Author: Julian Andres Klode <juliank@ubuntu.com>
--- apt-move-4.2.27.orig/fetch.cc
+++ apt-move-4.2.27/fetch.cc
@@ -1,9 +1,11 @@
 #include <apt-pkg/acquire-item.h>
 #include <apt-pkg/cachefile.h>
+#include <apt-pkg/configuration.h>
 #include <apt-pkg/error.h>
 #include <apt-pkg/fileutl.h>
 #include <apt-pkg/init.h>
 #include <apt-pkg/pkgcache.h>
+#include <apt-pkg/pkgsystem.h>
 #include <apt-pkg/progress.h>
 #include <apt-pkg/sourcelist.h>
 #include <iostream>
@@ -13,6 +15,7 @@
 using std::cerr;
 using std::cout;
 using std::endl;
+using std::string;
 
 typedef pkgCache::VerIterator VerIterator;
 typedef pkgCache::VerFileIterator VerFileIterator;
@@ -43,7 +46,7 @@ VerIterator getHighestVersion(pkgCache &
 bool downloadPackages(int test, int argc, char **argv) {
 	pkgCacheFile cache;
 	OpTextProgress prog(*_config);
-	if (!cache.Open(prog, false))
+	if (!cache.Open(&prog, false))
 		return false;
 
 	pkgRecords rec(cache);