feat(apt-source): run apt-update after installation

This commit is contained in:
s3lph 2023-12-18 19:44:51 +01:00
parent 4fe6ccd91c
commit 01f307a519
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5
3 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,5 @@
Package: __PKGNAME__
Version: 0.2-1
Version: 0.2-2
Maintainer: __MAINTAINER__
Section: web
Priority: optional

View file

@ -0,0 +1,5 @@
#!/bin/bash
if [[ "$1" == "configure" ]]; then
apt update || true
fi

View file

@ -11,6 +11,7 @@ cp gitkabelsalatch-s3lph.sources build/pkgdir/etc/apt/sources.list.d/gitkabelsal
cp gitkabelsalatch-s3lph.asc build/pkgdir/usr/share/keyrings/gitkabelsalatch-s3lph.asc
cp debian.control build/pkgdir/DEBIAN/control
cp debian.conffiles build/pkgdir/DEBIAN/conffiles
cp debian.postinst build/pkgdir/DEBIAN/postinst
cp debian.changelog "build/pkgdir/usr/share/doc/${PKGNAME}/changelog"
cp debian.copyright "build/pkgdir/usr/share/doc/${PKGNAME}/copyright"