diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-28 20:24:10 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-28 20:24:10 +0000 |
commit | f9aa9cd90ed52cba6a360f43462fc62ff6b961cb (patch) | |
tree | 31c52d8c1f72ad19c65e835a35c0addbe4592c47 | |
parent | 328a9067418ff611a0b9fd68db56e91c3b48eddb (diff) | |
download | cpt-f9aa9cd90ed52cba6a360f43462fc62ff6b961cb.tar.gz |
kiss: match whole line
FossilOrigin-Name: 23efff01154a25a8e0554be107f68559b93c91d362dede8397536082ae751adb
-rwxr-xr-x | kiss | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -829,7 +829,7 @@ pkg_conflicts() { # Rewrite the package's manifest to update its location # to its new spot (and name) in the choices directory. - sed -i "s/$sea/$rep/" \ + sed -i "s/^$sea\$/$rep/" \ "$tar_dir/$p_name/$pkg_db/$p_name/manifest" done else @@ -875,8 +875,8 @@ pkg_swap() { # Convert the current owner to an alternative and rewrite # its manifest file to reflect this. - dosu cp -f "'$2'" "'$pkg_owns>${alt#*>}'" - dosu sed -i "'s/$sea/$rep/'" "'../installed/$pkg_owns/manifest'" + dosu cp -f "'$2'" "'$pkg_owns>${alt#*>}'" + dosu sed -i "'s/^$sea\$/$rep/'" "'../installed/$pkg_owns/manifest'" fi regex_escape "$PWD/$alt" "$2" @@ -884,7 +884,7 @@ pkg_swap() { # Convert the desired alternative to a real file and rewrite # the manifest file to reflect this. The reverse of above. dosu mv -f "'$alt'" "'$2'" - dosu sed -i "'s/$sea/$rep/'" "'../installed/$1/manifest'" + dosu sed -i "'s/^$sea\$/$rep/'" "'../installed/$1/manifest'" } pkg_remove() { |