Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkgclean does not delete subpackages #1127

Open
bdrewery opened this issue Feb 19, 2024 · 0 comments
Open

pkgclean does not delete subpackages #1127

bdrewery opened this issue Feb 19, 2024 · 0 comments
Assignees

Comments

@bdrewery
Copy link
Member

I've added a local test named bulk-build-inc-pkgclean-subpackage.sh that is currently XFAIL due to pkgclean not handling subpackages.

[00:00:46] (00:00:00) stdout: =>> Running: poudriere -e /var/tmp/poudriere/test/etc -d -E -v pkgclean -O _root_git_poudriere6_test-ports_subpkg -j poudriere-test-amd64 -p _root_git_poudriere6_t
est-ports_default -z bulk-build-inc-pkgclean-subpackage -y -C ports-mgmt/subpkgtest
...
[00:00:48] (00:00:00) stdout: [00:00:01] Looking for unneeded packages
[00:00:48] (00:00:00) stdout: [00:00:01] Found specified package (ports-mgmt/subpkgtest): /var/tmp/poudriere/test/data/packages/poudriere-test-amd64-_root_git_poudriere6_test-ports_default-bulk
-build-inc-pkgclean-subpackage/.latest/All/port-test-0.0.2.pkg
[00:00:48] (00:00:00) stdout: [00:00:01] Calculating size for found files... done
[00:00:48] (00:00:00) stderr: =>> 7295> /root/git/poudriere6/test/bulk-build-inc-pkgclean-subpackage.sh:45 OK
[00:00:48] (00:00:00) stderr: =>> 7295> /root/git/poudriere6/test/bulk-build-inc-pkgclean-subpackage.sh:47:_assert_ret_not:12 TEST: $? == 1 cmd: [ -e /var/tmp/poudriere/test/data/packages/poudriere-test-amd64-_root_git_poudriere6_test-ports_default-bulk-build-inc-pkgclean-subpackage/All/port-test-0.0.2.pkg ]
[00:00:48] (00:00:00) stderr: =>> 7295> /root/git/poudriere6/test/bulk-build-inc-pkgclean-subpackage.sh:47:_assert_ret_not:12 TEST: '1' == '1'
[00:00:48] (00:00:00) stderr: =>> 7295> /root/git/poudriere6/test/bulk-build-inc-pkgclean-subpackage.sh:47:_assert_ret_not:12 OK
[00:00:48] (00:00:00) stderr: =>> 7295> /root/git/poudriere6/test/bulk-build-inc-pkgclean-subpackage.sh:47:_assert_ret_not:12 TEST: $? == 1 cmd: [ -e /var/tmp/poudriere/test/data/packages/poudriere-test-amd64-_root_git_poudriere6_test-ports_default-bulk-build-inc-pkgclean-subpackage/All/port-test-cmd2-0.0.2.pkg ]
[00:00:48] (00:00:00) stderr: =>> 7295> /root/git/poudriere6/test/bulk-build-inc-pkgclean-subpackage.sh:47:_assert_ret_not:12 TEST: '1' == '0'
[00:00:48] (00:00:00) stderr: =>> 7295> /root/git/poudriere6/test/bulk-build-inc-pkgclean-subpackage.sh:47:_assert_ret_not:12 FAIL: Bad exit status: 0 cmd: [ -e /var/tmp/poudriere/test/data/packages/poudriere-test-amd64-_root_git_poudriere6_test-ports_default-bulk-build-inc-pkgclean-subpackage/All/port-test-cmd2-0.0.2.pkg ]$
[00:00:48] (00:00:00) stderr: >>   expected '1$'
[00:00:48] (00:00:00) stderr: >>   actual   '0$'
~/git/poudriere6 # ls -al /var/tmp/poudriere/test/data/packages/poudriere-test-amd64-_root_git_poudriere6_test-ports_default-bulk-build-inc-pkgclean-subpackage/All/
total 18289
drwxr-xr-x  2 root   wheel        9 Feb 18 16:04 ./
drwxr-xr-x  4 root   wheel       12 Feb 18 16:04 ../
-rw-r--r--  2 nobody wheel 32015360 Feb 18 16:04 pkg-1.20.9_1.pkg
-rw-r--r--  2 nobody wheel    14848 Feb 18 16:04 port-test-cmd2-0.0.2.pkg
-rw-r--r--  2 nobody wheel    10240 Feb 18 16:04 port-test-data1-0.0.2.pkg
-rw-r--r--  2 nobody wheel    10240 Feb 18 16:04 port-test-data2-0.0.2.pkg
-rw-r--r--  2 nobody wheel     8704 Feb 18 16:04 port-test-docs-0.0.2.pkg
-rw-r--r--  2 nobody wheel     8704 Feb 18 16:04 port-test-examples-0.0.2.pkg
-rw-r--r--  2 nobody wheel    59904 Feb 18 16:04 pstree-2.40_1.pkg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant