"db remove" does not update state (sometimes?)
When removing intel-opencl-clang
from extra I noticed that there was no commit to the state repo. Trying again with --arch x86_64
seems to have done the trick.
Testing again with the leftover intel-opencl-clang
from extra-staging:
$ pkgctl db remove extra-staging intel-opencl-clang
==> Removing intel-opencl-clang from [extra-staging]...
==> WARNING: pkgbase intel-opencl-clang not found in extra-staging-any
==> WARNING: Removing only pkgname intel-opencl-clang from the repo
==> WARNING: If it was a split package you have to pass its pkgbase to remove it completely!
==> ERROR: Package matching 'intel-opencl-clang' not found.
==> ERROR: repo-remove '/srv/ftp/extra-staging/os/x86_64/extra-staging.db.tar.gz' 'intel-opencl-clang'
chgrp: changing group of '/srv/ftp/extra-staging/os/x86_64/extra-staging.db.tar.gz': Operation not permitted
==> ERROR: Could not change group of /srv/ftp/extra-staging/os/x86_64/extra-staging.db.tar.gz to junior-packager
chgrp: changing group of '/srv/ftp/extra-staging/os/x86_64/extra-staging.files.tar.gz': Operation not permitted
==> ERROR: Could not change group of /srv/ftp/extra-staging/os/x86_64/extra-staging.files.tar.gz to junior-packager
chmod: changing permissions of '/srv/ftp/extra-staging/os/x86_64/extra-staging.db.tar.gz': Operation not permitted
==> ERROR: Could not set write permission for group junior-packager to /srv/ftp/extra-staging/os/x86_64/extra-staging.db.tar.gz
chmod: changing permissions of '/srv/ftp/extra-staging/os/x86_64/extra-staging.files.tar.gz': Operation not permitted
==> ERROR: Could not set write permission for group junior-packager to /srv/ftp/extra-staging/os/x86_64/extra-staging.files.tar.gz
There is no state commit. And now with --arch
:
$ pkgctl db remove --arch x86_64 extra-staging intel-opencl-clang
==> Removing intel-opencl-clang from [extra-staging]...
==> ERROR: Package matching 'intel-opencl-clang' not found.
==> ERROR: repo-remove '/srv/ftp/extra-staging/os/x86_64/extra-staging.db.tar.gz' 'intel-opencl-clang'
chgrp: changing group of '/srv/ftp/extra-staging/os/x86_64/extra-staging.db.tar.gz': Operation not permitted
==> ERROR: Could not change group of /srv/ftp/extra-staging/os/x86_64/extra-staging.db.tar.gz to junior-packager
chgrp: changing group of '/srv/ftp/extra-staging/os/x86_64/extra-staging.files.tar.gz': Operation not permitted
==> ERROR: Could not change group of /srv/ftp/extra-staging/os/x86_64/extra-staging.files.tar.gz to junior-packager
chmod: changing permissions of '/srv/ftp/extra-staging/os/x86_64/extra-staging.db.tar.gz': Operation not permitted
==> ERROR: Could not set write permission for group junior-packager to /srv/ftp/extra-staging/os/x86_64/extra-staging.db.tar.gz
chmod: changing permissions of '/srv/ftp/extra-staging/os/x86_64/extra-staging.files.tar.gz': Operation not permitted
==> ERROR: Could not set write permission for group junior-packager to /srv/ftp/extra-staging/os/x86_64/extra-staging.files.tar.gz
rm 'extra-staging-x86_64/intel-opencl-clang'
[main b1f549adb] remove intel-opencl-clang from extra-staging-x86_64
1 file changed, 1 deletion(-)
delete mode 100644 extra-staging-x86_64/intel-opencl-clang
Edited by Evangelos Foutras