Hi Ceel,
I can't confirm bug with package removal with the --root
option.
I tested it in a bit different way.
- Install "gnumeric" in a testing non-existent folder
/tmp/1
. Here used options:
--root=/tmp/1
to point tazpkg to new root;
--nodeps
to install only "gnumeric" without a thousand of other dependencies (faster testing);
--debug
to show debugging messages (they are sometimes unclear even for me :-D and fairly poor).
# tazpkg -gi gnumeric --root=/tmp/1 --nodeps --debug
- Read the log:
# cat /tmp/1/var/log/slitaz/tazpkg.log
2015-10-29 00:13:51 - Installed - gnumeric (1.10.17) - a09af18c077f77c75eb29018bef4076f
Looks logical.
- Remove "gnumeric" from testing folder:
# tazpkg -r gnumeric --root=/tmp/1 --debug
- Read the log:
# cat /tmp/1/var/log/slitaz/tazpkg.log
2015-10-29 00:13:51 - Installed - gnumeric (1.10.17) - a09af18c077f77c75eb29018bef4076f
2015-10-29 00:20:06 - Removed - gnumeric (1.10.17)
Looks good too.
- Read regular log:
# tail -n6 /var/log/slitaz/tazpkg.log
2015-10-27 03:38:55 - Removed - cups-doc (2.0.2)
2015-10-27 03:38:58 - Removed - cups-filters (1.0.71)
2015-10-27 03:39:01 - Removed - docbook-xml (4.5)
2015-10-27 01:44:28 - Removed - glibc-locale (2.14.1)
2015-10-28 15:45:15 - Installed - dosbox (0.74) - e3ff8652797a01ed05f506f1578436b1
2015-10-28 15:45:41 - Removed - dosbox (0.74)
So... I can't imagine how to get this error.
________
Second take.
Previously I installed "gnumeric" to my regular system.
Then I installed it into "/tmp/1", and then removed it.
In the regular system I see no "gnumeric" deletion all these ways:
tazpkg -a
cat /var/log/slitaz/tazpkg.log
tazpkg -l | grep gnumeric
grep ^gnumeric /var/lib/tazpkg/installed.info
ls /var/lib/tazpkg/installed/gnumeric
All here, and nothing was removed.
BTW I use the latest version of the "tazpkg-test" (while I developed it) and not update "tazpkg" package on my system.
Oh, maybe "tazpkg" package on your system has been updated and replaced the "tazpkg-test" files?.. Yes, it may be an answer.