diff options
author | Hans-Nikolai Viessmann | 2020-12-02 17:11:01 +0100 |
---|---|---|
committer | XZS | 2022-09-13 14:08:00 +0200 |
commit | 0967012f99ade45b3fc3972abdd2d5ccc4d39029 (patch) | |
tree | 5b24adc267860338dc60936de1f92b087f0c32aa /PKGBUILD | |
parent | 0aae9ff6bf58c916298c8e2b63c9c8e356f25640 (diff) | |
download | aur-0967012f99ade45b3fc3972abdd2d5ccc4d39029.tar.gz |
make missing 'pkgs' error non-fatal
tllocalmgr uses 'pkgs' files in order to get version information about
what texlive/CTAN packages are installed on the system. For official
texlive-* packages and some other ones this works fine, but a lot of
AUR packages *do not* create the a 'pkgs' file. In this situation,
tllocalmgr would fatal error out.
This is a little extreme, though sensible as without a valid 'pkgs' file
to parse for LaTeX package versions, tllocalmgr _might_ allow for
packages to be installed which are already present on the machine. This
however is _unlikly_ as when installing through pacman, we should hit
into the FS integrity check, causing install to fail.
Ideally we would want all texlive packages to always have a 'pkgs' file
but that is unlikely. An alternative idea might be to create a
pacman-hook to generate one if missing, but could be very tricky and
time consuming.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -7,7 +7,7 @@ pkgname=texlive-localmanager-git _pkgname="${pkgname%-git}" pkgver=v0.7.r3.gbbd8488 -pkgrel=5 +pkgrel=6 pkgdesc='A shell and command-line utility to manage TeXLive on Arch Linux' arch=('any') url='https://git.archlinux.org/users/remy/texlive-localmanager.git/' @@ -26,11 +26,13 @@ makedepends=('git') source=("${_pkgname}::git+http://git.archlinux.org/users/remy/texlive-localmanager.git" 'tllocalmgr-2020.patch' 'tllocalmgr-enhance.patch' - 'tllocalmgr-fix-texlive-local-match.patch') + 'tllocalmgr-fix-texlive-local-match.patch' + 'tllocalmgr-pkgs-nicer-error.patch') sha256sums=('SKIP' 'cdd88b9d8b87fcd6117a3ef6c9dd69ac1103a15beb966d64f2ad1996b574a1f1' '22222ff329919ee6a16ffd489b0213b14f8169d9daf6ef1a82aa5ab37538c236' - 'a7698d0076f4e1a7ef401899c174ed9a290674a7e89e9c818ba078e17548c6e7') + 'a7698d0076f4e1a7ef401899c174ed9a290674a7e89e9c818ba078e17548c6e7' + '1538426adada826f8faeed826e9be5f5610ade23ce0437535e39662294e6e108') pkgver() { cd "$_pkgname" @@ -50,6 +52,9 @@ prepare() { # fix missing exclusion of matches for texlive local packages # thanks: @CaptainBern patch -p1 < "$srcdir/tllocalmgr-fix-texlive-local-match.patch" + + # make error on missing 'pkgs' file non-fatal, improve error msg + patch -p1 < "$srcdir/tllocalmgr-pkgs-nicer-error.patch" } package() { |