~sourcemage/sorcery

6e5f1e1c38163323690f56c8379d4c5904d7c589 — Thomas Orgis 5 months ago 80d53a2
resurrect: fix for symlink on /var/cache/sorcery
2 files changed, 4 insertions(+), 1 deletions(-)

M ChangeLog
M usr/sbin/resurrect
M ChangeLog => ChangeLog +3 -0
@@ 1,3 1,6 @@
2023-11-13 Thomas Orgis
	* resurrect: fix old version location if /var/cache/sorcery is a symlink

2022-07-23 Ismael Luceno <ismael@sourcemage.org>
	* gaze: sreamlined show-spell-version functions


M usr/sbin/resurrect => usr/sbin/resurrect +1 -1
@@ 82,7 82,7 @@ do_resurrect() {
  else
    # find the available versions, regardless of compression
    local version versions
    versions=$(find $INSTALL_CACHE -name "$spell-*-$HOST.*" -printf "%f\n" |
    versions=$(find "$INSTALL_CACHE/" -name "$spell-*-$HOST.*" -printf "%f\n" |
      sed "s,^$spell-\(\S*\)-$HOST\.\S*$,\1," |
      while read version; do
        # we need to ignore other spells with similar names due to laxed matching