pentoo-system: make pentoo-updater find the repo instead of being a broken symlink

This commit is contained in:
Rick Farina (Zero_Chaos) 2018-07-18 12:14:58 -04:00
parent 743f44748c
commit ebea41690e
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,7 @@
#!/bin/sh
for i in /var/db/repos /var/lib/layman; do
if [ -x "${i}"/pentoo/scripts/pentoo-updater.sh ]; then
exec "${i}"/pentoo/scripts/pentoo-updater.sh
exit $?
fi
done

View file

@ -162,7 +162,7 @@ src_install() {
insinto /etc/portage/repos.conf
doins "${FILESDIR}/pentoo.conf"
dosym /var/db/repos/pentoo/scripts/pentoo-updater.sh /usr/sbin/pentoo-updater
dosbin "${FILESDIR}"/pentoo-updater
#/etc/portage/postsync.d
exeinto /etc/portage/postsync.d