Use sudo for apt.
authorCarl Hetherington <cth@carlh.net>
Thu, 21 Dec 2023 22:41:16 +0000 (23:41 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 4 Jan 2024 00:01:35 +0000 (01:01 +0100)
Though the cci instance on main runs things on droplets as root,
on klopp they run as carl.  I made password-less sudo for apt work
on the docker image so this makes the appimage builds work on
klopp too.

cscript

diff --git a/cscript b/cscript
index 5ca1d2c5708fe3a08ff270c56cd72fba7605101f..3903bd074310db0ab638a026f957dcd9141d1b9e 100644 (file)
--- a/cscript
+++ b/cscript
@@ -792,7 +792,7 @@ def make_appimage(target, nice_name, internal_name, version, extra_binaries=None
     lib = 'usr/lib/x86_64-linux-gnu'
     target.command(f'mkdir -p build/{nice_filename}.AppDir/{lib}/gdk-pixbuf-2.0/2.10.0')
     target.command(f'cp -a /{lib}/gdk-pixbuf-2.0 build/{nice_filename}.AppDir/usr/lib/x86_64-linux-gnu/')
-    target.command('apt update')
+    target.command('sudo apt update')
     for package in ['libc6', 'libglib2.0-0', 'gnome-settings-daemon-schemas', 'librsvg2-common', 'libgdk-pixbuf2.0-0', 'libpango-1.0-0', 'libpangoft2-1.0-0', 'libpangocairo-1.0-0', 'libthai0']:
         target.command(f'apt download {package}')
         target.command(f'dpkg-deb -x {package}*.deb {appdir}')