kiss-community / kiss

KISS - Package Manager, mirror of https://codeberg.org/kiss-community/kiss
https://kisslinux.org/package-manager
MIT License
20 stars 11 forks source link

kiss: remove broken directory symlinks #45

Closed dylanaraps closed 3 years ago

dylanaraps commented 3 years ago

This changes pkg_remove_files to queue all directory symlinks for removal after all other items. Links are only removed if they are broken and a safeguard has been added for root level directories.

Also fixed are some bugs around how the paths are stored internally.

  1. If KISS_ROOT is empty, path ends up being //path/to/file.
  2. Directory symlinks are undetectable when they have '/' as a suffix.

Let me know if there are any issues :)

Closes #23

dilyn-corner commented 3 years ago

754c9424f1b74af494b96fcb2dab7d9f51f14557 - Seemed to have no issues :)