mirror of
https://github.com/zuno/slackpkgplus
synced 2025-02-05 20:45:59 +01:00
Slackpkg 0.9.7.4 released
Version 0.9.7.4 - 24/Sep/2013 - Try a better way to detect the newest version of the same package in local or remote directory (does not guarantees 100% success) - Try to download CHECKSUMS.md5.gz.asc if CHECKSUMS.md5.asc does not exists (as salixos repository)
This commit is contained in:
parent
ea778f8118
commit
be046cae08
4 changed files with 41 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
|||
Version 0.9.7.4 - 24/Sep/2013
|
||||
- Try a better way to detect the newest version of the same package in local
|
||||
or remote directory (does not guarantees 100% success)
|
||||
- Try to download CHECKSUMS.md5.gz.asc if CHECKSUMS.md5.asc does not exists
|
||||
(as salixos repository)
|
||||
|
||||
Version 0.9.7.3 - 10/Sep/2013
|
||||
- Fix an issue with dir:// repositories and gpg check
|
||||
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
Version 0.9.7.4 - 24/Sep/2013
|
||||
- Try a better way to detect the newest version of the same package in local
|
||||
or remote directory (does not guarantees 100% success)
|
||||
- Try to download CHECKSUMS.md5.gz.asc if CHECKSUMS.md5.asc does not exists
|
||||
(as salixos repository)
|
||||
|
||||
Version 0.9.7.3 - 10/Sep/2013
|
||||
- Fix an issue with dir:// repositories and gpg check
|
||||
|
||||
|
|
|
@ -11,15 +11,20 @@ zerouno: http://www.z01.eu/repo-slack/slackware64-current/
|
|||
mled: http://www.microlinux.fr/slackware/MLED-14.0-{32,64}bit/
|
||||
mles: http://www.microlinux.fr/slackware/MLES-14.0-{32,64}bit/
|
||||
mles: http://www.microlinux.fr/slackware/MLWS-14.0-{32,64}bit/
|
||||
msb: http://slackware.org.uk/msb/
|
||||
msb: http://slackware.org.uk/msb/14.0/1.6/{x86,x86_64}/
|
||||
slackers: http://www.slackers.it/repository/
|
||||
|
||||
Does NOT supports GPG
|
||||
salixos: http://download.salixos.org/{i486,x86_64}/{13.37,14.0}/
|
||||
salixos(*): http://download.salixos.org/{i486,x86_64}/{13.37,14.0}/
|
||||
salixext: http://people.salixos.org/ralvex/packages/{i486,x86_64}/{13.37,14.0}/
|
||||
rlworkman: http://rlworkman.net/pkgs/{13.37,14.0}/
|
||||
slackel: http://www.slackel.gr/repo/{i486,x86_64}/current/
|
||||
|
||||
(*) salixos partially supports GPG. This repository contains the .asc file for CHECKSUMS.md5,
|
||||
so the 'update' process works with CHECKGPG=on and repository authenticity is guaranteed.
|
||||
Unfortunatly the single packages does not contains the relative .asc file, so you must
|
||||
install the packages with 'slackpkg -checkgpg=off install <packagename>', but the
|
||||
authenticity is guaranteed by the md5 authenticity.
|
||||
|
||||
|
||||
You can found a larger list at http://slakfinder.org
|
||||
|
|
|
@ -78,6 +78,25 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
cp -v $URLFILE ${TMPDIR}/CHECKSUMS.md5-$PREPO.asc
|
||||
else
|
||||
$DOWNLOADER ${TMPDIR}/CHECKSUMS.md5-$PREPO.asc $URLFILE
|
||||
if [ $? -ne 0 ];then
|
||||
$DOWNLOADER ${TMPDIR}/CHECKSUMS.md5-$PREPO.gz.asc `echo $URLFILE|sed 's/\.asc$/.gz.asc/'`
|
||||
if [ $? -eq 0 ];then
|
||||
$DOWNLOADER ${TMPDIR}/CHECKSUMS.md5-$PREPO.gz $URLFILE.gz
|
||||
if [ $(checkgpg ${TMPDIR}/CHECKSUMS.md5-$PREPO.gz) -eq 0 ];then
|
||||
echo
|
||||
echo " !!! N O T I C E !!!"
|
||||
echo " Repository '$PREPO' does support signature checking for"
|
||||
echo " CHECKSUMS.md5 file so the repository authenticity is guaranteed"
|
||||
echo " but you MAY need to temporary disable gpg check when you"
|
||||
echo " install the packages using:"
|
||||
echo " 'slackpkg -checkgpg=off install packge'"
|
||||
echo " The package authenticity remains guaranteed."
|
||||
echo
|
||||
sleep 5
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
if [ $? -eq 0 ];then
|
||||
if [ $(checkgpg ${TMPDIR}/CHECKSUMS.md5-$PREPO) -ne 1 ];then
|
||||
|
@ -524,7 +543,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
continue
|
||||
fi
|
||||
( cd $localpath
|
||||
ls -ld *.t[blxg]z|tac|grep ^-|awk '{print "./SLACKPKGPLUS_'$PREPO'/"$NF}'|awk -f /usr/libexec/slackpkg/pkglist.awk >> ${TMPDIR}/pkglist-pre
|
||||
ls -ld *.t[blxg]z|sort -rn|grep ^-|awk '{print "./SLACKPKGPLUS_'$PREPO'/"$NF}'|awk -f /usr/libexec/slackpkg/pkglist.awk >> ${TMPDIR}/pkglist-pre
|
||||
)
|
||||
fi
|
||||
done
|
||||
|
@ -568,7 +587,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
localpath=$(pwd)/$localpath
|
||||
fi
|
||||
( cd $localpath
|
||||
ls -ld *.t[blxg]z|tac|grep ^-|awk '{print "./SLACKPKGPLUS_'$repository'/"$NF}'|awk -f /usr/libexec/slackpkg/pkglist.awk >> ${TMPDIR}/pkglist-pre
|
||||
ls -ld *.t[blxg]z|sort -rn|grep ^-|awk '{print "./SLACKPKGPLUS_'$repository'/"$NF}'|awk -f /usr/libexec/slackpkg/pkglist.awk >> ${TMPDIR}/pkglist-pre
|
||||
)
|
||||
MIRRORPLUS[$repository]="file:/$localpath/"
|
||||
PRIORITYLIST=( ${PRIORITYLIST[*]} SLACKPKGPLUS_${repository}:.* )
|
||||
|
@ -591,7 +610,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
elif echo "$pref" | egrep -q "^(https?|ftp)://.*/.*" ;then
|
||||
repository=$(echo "$pref" | cut -f1 -d":")
|
||||
repository=$repository$(grep ^SLACKPKGPLUS_$repository[0-9] ${TMPDIR}/pkglist-pre|awk '{print $1}'|uniq|wc -l)
|
||||
lftp $pref -e "ls;quit" 2>/dev/null|awk '{print $NF}'|egrep '^.*-[^-]+-[^-]+-[^\.]+\.t.z$'|tac| \
|
||||
lftp $pref -e "ls;quit" 2>/dev/null|awk '{print $NF}'|egrep '^.*-[^-]+-[^-]+-[^\.]+\.t.z$'|sort -rn| \
|
||||
awk '{print "./SLACKPKGPLUS_'$repository'/"$NF}'|awk -f /usr/libexec/slackpkg/pkglist.awk >> ${TMPDIR}/pkglist-pre
|
||||
MIRRORPLUS[$repository]=$(echo "$pref" |sed 's_/$__')"/"
|
||||
PRIORITYLIST=( ${PRIORITYLIST[*]} SLACKPKGPLUS_${repository}:.* )
|
||||
|
|
Loading…
Add table
Reference in a new issue