[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#930663: apt-move: Port to apt 1.9



Package: apt-move
Version: 4.2.27-5
Severity: normal
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu eoan ubuntu-patch

In Ubuntu, the attached patch was applied to achieve the following:

  * Port to apt 1.9

Thanks for considering the patch.


-- System Information:
Debian Release: buster/sid
  APT prefers eoan
  APT policy: (991, 'eoan'), (500, 'eoan'), (500, 'cosmic-security')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.0.0-15-generic (SMP w/8 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en
diff -Nru apt-move-4.2.27/debian/patches/apt-1.9.patch apt-move-4.2.27/debian/patches/apt-1.9.patch
--- apt-move-4.2.27/debian/patches/apt-1.9.patch	1970-01-01 01:00:00.000000000 +0100
+++ apt-move-4.2.27/debian/patches/apt-1.9.patch	2019-06-17 23:06:45.000000000 +0200
@@ -0,0 +1,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);
diff -Nru apt-move-4.2.27/debian/patches/series apt-move-4.2.27/debian/patches/series
--- apt-move-4.2.27/debian/patches/series	2016-11-02 05:34:17.000000000 +0100
+++ apt-move-4.2.27/debian/patches/series	2019-06-17 23:06:16.000000000 +0200
@@ -4,3 +4,4 @@
 fix_perl_implicit_split_deprecation.patch
 fix-makefile.patch
 drop-contents-header.patch
+apt-1.9.patch

Reply to: