summarylogtreecommitdiffstats
path: root/0002-remove-apt-dependency.patch
blob: 8621efbf5b20b1e7ed84b50930ec5148727424f6 (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
From 1b3439af14c0eb0123dba0658e478396cad2f081 Mon Sep 17 00:00:00 2001
From: Dominik Csapak <dominik.csapak@gmail.com>
Date: Sun, 2 Aug 2020 10:05:20 +0200
Subject: [PATCH 2/2] remove apt dependency

not needed for the client, and would depend on libapt-pkg-dev

Signed-off-by: Dominik Csapak <dominik.csapak@gmail.com>
Signed-off-by: Thomas Lamprecht <thomas@lamprecht.org>
---
 Cargo.toml       | 1 -
 src/api2/node.rs | 2 --
 src/tools.rs     | 1 -
 3 files changed, 4 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index 29db166d..5c2ea539 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,7 +23,6 @@ name = "proxmox_backup"
 path = "src/lib.rs"
 
 [dependencies]
-apt-pkg-native = "0.3.2"
 base64 = "0.12"
 bitflags = "1.2.1"
 bytes = "1.0"
diff --git a/src/api2/node.rs b/src/api2/node.rs
index 6c3e7967..32760e65 100644
--- a/src/api2/node.rs
+++ b/src/api2/node.rs
@@ -24,7 +24,6 @@ use crate::server::WorkerTask;
 use crate::tools;
 use crate::tools::ticket::{self, Empty, Ticket};
 
-pub mod apt;
 pub mod disks;
 pub mod dns;
 pub mod network;
@@ -306,7 +305,6 @@ fn upgrade_to_websocket(
 }
 
 pub const SUBDIRS: SubdirMap = &[
-    ("apt", &apt::ROUTER),
     ("disks", &disks::ROUTER),
     ("dns", &dns::ROUTER),
     ("journal", &journal::ROUTER),
diff --git a/src/tools.rs b/src/tools.rs
index 08f9d22f..efb63309 100644
--- a/src/tools.rs
+++ b/src/tools.rs
@@ -17,7 +17,6 @@ use percent_encoding::{utf8_percent_encode, AsciiSet};
 pub use proxmox::tools::fd::Fd;
 
 pub mod acl;
-pub mod apt;
 pub mod async_io;
 pub mod borrow;
 pub mod cert;
-- 
2.29.2