dot instead of source, source caused problems
This commit is contained in:
parent
d215e11a08
commit
a0c9a157d8
1 changed files with 3 additions and 3 deletions
6
spkg
6
spkg
|
@ -19,7 +19,7 @@ removepkg() {
|
|||
prefix=$2
|
||||
cd /usr/src/"${pkgname}" || exit 2
|
||||
{
|
||||
source ./PACKAGE
|
||||
. ./PACKAGE
|
||||
"pkg_uninstall" "${prefix}"
|
||||
}
|
||||
sed "s/${pkgname} ${pkg_ver}//" "${prefix}"/var/cache/spkg.cache
|
||||
|
@ -30,12 +30,12 @@ instpkg() {
|
|||
mkdir -p "${tmpdir}"/spkg/work/"${1}"-work/
|
||||
cd "${tmpdir}"/spkg/work/"${1}"-work/ || exit 2
|
||||
mkdir -p "${prefix}"/usr/src/"${pkgname}"
|
||||
wget "${prefix}"/usr/src/"${pkgname}" "${source}"/"${pkgname}"/PACKAGE
|
||||
wget -O "${prefix}"/usr/src/"${pkgname}" "${source}"/"${pkgname}"/PACKAGE
|
||||
cd "${prefix}"/usr/src/"${pkgname}" || exit 2
|
||||
export PREFIX="${prefix}"
|
||||
export PKGNAME="${pkgname}"
|
||||
{
|
||||
source ./PACKAGE
|
||||
. ./PACKAGE
|
||||
"pkg_install" "${prefix}"
|
||||
}
|
||||
sed a\ "${pkgname} ${pkg_ver}" "${prefix}"/var/cache/spkg.cache > "${prefix}"/var/cache/spkg.cache
|
||||
|
|
Loading…
Reference in a new issue