spkg script change
This commit is contained in:
parent
edf3f7dbc8
commit
d215e11a08
1 changed files with 2 additions and 2 deletions
4
spkg
4
spkg
|
@ -22,7 +22,7 @@ removepkg() {
|
||||||
source ./PACKAGE
|
source ./PACKAGE
|
||||||
"pkg_uninstall" "${prefix}"
|
"pkg_uninstall" "${prefix}"
|
||||||
}
|
}
|
||||||
sed "s/${pkgname} $(${pkgname} --version)//" "${prefix}"/var/cache/spkg.cache
|
sed "s/${pkgname} ${pkg_ver}//" "${prefix}"/var/cache/spkg.cache
|
||||||
}
|
}
|
||||||
instpkg() {
|
instpkg() {
|
||||||
pkgname=$1
|
pkgname=$1
|
||||||
|
@ -38,7 +38,7 @@ instpkg() {
|
||||||
source ./PACKAGE
|
source ./PACKAGE
|
||||||
"pkg_install" "${prefix}"
|
"pkg_install" "${prefix}"
|
||||||
}
|
}
|
||||||
sed a\ "${pkgname} $(${pkgname} --version)" "${prefix}"/var/cache/spkg.cache > "${prefix}"/var/cache/spkg.cache
|
sed a\ "${pkgname} ${pkg_ver}" "${prefix}"/var/cache/spkg.cache > "${prefix}"/var/cache/spkg.cache
|
||||||
}
|
}
|
||||||
update() {
|
update() {
|
||||||
pkgname=$1
|
pkgname=$1
|
||||||
|
|
Loading…
Reference in a new issue