From fa6537934db8491f20eb3fdd39b38ea78c4c482b Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 23 Mar 2023 16:29:21 -0300 Subject: Use manual echo to /etc/apt/sources.list over apt-add-repository --- src/bin/paku.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/bin/paku.in b/src/bin/paku.in index f914426..1bac0ba 100755 --- a/src/bin/paku.in +++ b/src/bin/paku.in @@ -664,11 +664,12 @@ sub emit_html() { by adding its URL to /etc/apt/sources.list:

-
\$ sudo apt-add-repository 'deb $json->{'base-url'}/debian ./'
+
\$ echo 'deb $json->{'base-url'}/debian ./' |
+		    sudo tee -a /etc/apt/sources.list
+		\$ sudo apt update

- apt-add-repository will already perform - an apt update, so the packages from the - new repository will already be available. + After that the packages from the new repository will + be available.

-- cgit v1.2.3