xbps
xbps copied to clipboard
xbps-install removes empty directories but doesn't create them
If a package contains empty directories (in the DESTDIR),
-
xbps-createrecords these directories in the.plistfile (see the attached file), -
xbps-installremoves them when (force-)installing a package (complaining when they are not present), - but
xbps-installdoes not recreate them.
This results in error messages at xbps-install-time:
ERROR: core-files-0.0pl3135_2: failed to remove obsolete entry `./run': No such file or directory
Reproduction
To reproduce (note that the attached .xbps file is not compatible with void; do not install to / on a void system):
xbps-install -fy -r some_sysroot/ core-files
xbps-install -fy -r some_sysroot/ core-files # The second invocation yields errors.
Expected Behavior
Either of these would work:
- xbps-create should omit empty directories,
- xbps-install should create them,
- or xbps-install should not remove them.
Meta Data
xbps -V: XBPS: 0.59 API: 20200221 GIT: UNSET
Possibly related to #317.