xbps icon indicating copy to clipboard operation
xbps copied to clipboard

xbps-rindex -r Assertion `obj' failed when $arch-repodata is empty

Open paper42 opened this issue 3 years ago • 0 comments

When $arch-repodata exists, but it doesn't contain any entries, xbps-rindex -r fails with an assertion error:

Steps to reproduce:

%: xbps-rindex -a <something>.xbps
%: rm <something>.xbps
%: xbps-rindex -c .
%: xbps-rindex -r .
xbps-rindex: portableproplib/prop_object.c:1091: prop_object_release: Assertion `obj' failed.
Aborted (core dumped)

Should xbps-rindex -c remove the $arch-repodata file when it's empty?

paper42 avatar Mar 25 '22 20:03 paper42