forked from kiss-community/kiss
kiss: Use mak_dir to store the file
This commit is contained in:
parent
5f00b925c8
commit
23c0278f5b
16
kiss
16
kiss
@ -806,19 +806,21 @@ pkg_swap() {
|
|||||||
# Convert the current owner to an alternative and rewrite
|
# Convert the current owner to an alternative and rewrite
|
||||||
# its manifest file to reflect this.
|
# its manifest file to reflect this.
|
||||||
cp -Pf "$2" "$pkg_owns>${alt#*>}"
|
cp -Pf "$2" "$pkg_owns>${alt#*>}"
|
||||||
|
|
||||||
sed "$(esc "$2" "$PWD/$pkg_owns>${alt#*>}")" \
|
sed "$(esc "$2" "$PWD/$pkg_owns>${alt#*>}")" \
|
||||||
"../installed/$pkg_owns/manifest" > \
|
"../installed/$pkg_owns/manifest" > "$mak_dir/.$1"
|
||||||
"../installed/$pkg_owns/manifest.tmp"
|
|
||||||
mv -f "../installed/$pkg_owns/manifest.tmp" \
|
mv -f "$mak_dir/.$1" "../installed/$pkg_owns/manifest"
|
||||||
"../installed/$pkg_owns/manifest"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Convert the desired alternative to a real file and rewrite
|
# Convert the desired alternative to a real file and rewrite
|
||||||
# the manifest file to reflect this. The reverse of above.
|
# the manifest file to reflect this. The reverse of above.
|
||||||
mv -f "$alt" "$2"
|
mv -f "$alt" "$2"
|
||||||
sed "$(esc "$PWD/$alt" "$2")" "../installed/$1/manifest" > \
|
|
||||||
"../installed/$1/manifest.tmp"
|
sed "$(esc "$PWD/$alt" "$2")" \
|
||||||
mv -f "../installed/$1/manifest.tmp" "../installed/$1/manifest"
|
"../installed/$1/manifest" > "$mak_dir/.$1"
|
||||||
|
|
||||||
|
mv -f "$mak_dir/.$1" "../installed/$1/manifest"
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_install_files() {
|
pkg_install_files() {
|
||||||
|
Loading…
Reference in New Issue
Block a user