mirror of
https://github.com/zuno/slackpkgplus
synced 2024-12-27 09:58:34 +01:00
Now supports local directory.
Version 20130902.2 - 02/Sep/2013 - Added install from file or directoy: slackpkg {install|upgrade} file:test-1.0-noarch-1 slackpkg {install|upgrade} file:./ You can optionally specify relative path or absolute path for file.
This commit is contained in:
parent
07d73c1519
commit
1dd5dc128c
3 changed files with 24 additions and 4 deletions
|
@ -1,5 +1,7 @@
|
||||||
Version 20130902.1 - 02/Sep/2013
|
Version 20130902.2 - 02/Sep/2013
|
||||||
- Added install from file: slackpkg {install|upgrade} file:test-1.0-noarch-1
|
- Added install from file or directoy:
|
||||||
|
slackpkg {install|upgrade} file:test-1.0-noarch-1
|
||||||
|
slackpkg {install|upgrade} file:./
|
||||||
You can optionally specify relative path or absolute path for file.
|
You can optionally specify relative path or absolute path for file.
|
||||||
|
|
||||||
Version 0.9.6.1 - 02/Sep/2013
|
Version 0.9.6.1 - 02/Sep/2013
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
Version 20130902.1 - 02/Sep/2013
|
Version 20130902.2 - 02/Sep/2013
|
||||||
- Added install from file: slackpkg {install|upgrade} file:test-1.0-noarch-1
|
- Added install from file or directoy:
|
||||||
|
slackpkg {install|upgrade} file:test-1.0-noarch-1
|
||||||
|
slackpkg {install|upgrade} file:./
|
||||||
You can optionally specify relative path or absolute path for file.
|
You can optionally specify relative path or absolute path for file.
|
||||||
|
|
||||||
Version 0.9.6.1 - 02/Sep/2013
|
Version 0.9.6.1 - 02/Sep/2013
|
||||||
|
|
|
@ -490,6 +490,22 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
||||||
PRIORITYLIST=( ${PRIORITYLIST[*]} SLACKPKGPLUS_${repository}:$package )
|
PRIORITYLIST=( ${PRIORITYLIST[*]} SLACKPKGPLUS_${repository}:$package )
|
||||||
REPOPLUS=( ${repository} ${REPOPLUS[*]} )
|
REPOPLUS=( ${repository} ${REPOPLUS[*]} )
|
||||||
package=$(cutpkg $package)
|
package=$(cutpkg $package)
|
||||||
|
elif echo "$pref" | egrep -q -e "file:.*/$" -e "file:\.$"; then
|
||||||
|
localpath=$(echo "$pref" | cut -f2- -d":")
|
||||||
|
if [ ! -d "$localpath" ];then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
repository=file$(cat ${TMPDIR}/pkglist-pre|wc -l)
|
||||||
|
if [ ${localpath:0:1} != "/" ];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
|
||||||
|
)
|
||||||
|
MIRRORPLUS[$repository]="file:/$localpath"
|
||||||
|
PRIORITYLIST=( ${PRIORITYLIST[*]} SLACKPKGPLUS_${repository}:.* )
|
||||||
|
REPOPLUS=( ${repository} ${REPOPLUS[*]} )
|
||||||
|
package=SLACKPKGPLUS_$repository
|
||||||
|
|
||||||
elif echo "$pref" | grep -q "[a-zA-Z0-9]\+[:][a-zA-Z0-9]\+" ; then
|
elif echo "$pref" | grep -q "[a-zA-Z0-9]\+[:][a-zA-Z0-9]\+" ; then
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue