Support pacman 7.0
pacconf returns an error, but I suspect there are other places as well. Needs to support DisableSandbox as well I assume?
warning: config /etc/pacman.conf line 39: unknown option 'DownloadUser'
Please check with the pacman-7.0.0 branch.
While the pacman-7.0.0 branch silences the warning about the unknown config option, it also does not correctly parse/display their value:
$ make clean
$ make SYSCONFDIR=/etc LOCALSTATEDIR=/var -j$(nproc)
$ LD_LIBRARY_PATH=lib/ ./src/pacconf --config=pacman.conf | grep -E "DisableSandbox|DownloadUser"
<no result>
$ LD_LIBRARY_PATH=lib/ ./src/pacconf --config=pacman.conf DisableSandbox DownloadUser
warning: unknown directive 'DisableSandbox'
warning: unknown directive 'DownloadUser'
$ grep -E "DisableSandbox|DownloadUser" pacman.conf
DownloadUser = alpm
DisableSandbox
I have sent a PR to fix it 😅
well, we need a new release with the fixes. pacman 7 is out.
The presence of DownloadUser in pacman.conf causes pacsync to fail with error: could not sync dbs (unexpected error). Using --debug doesn't give any information about it.
Cannot reproduce.
I can reproduce it by running pacsync as a normal user if DownloadUser is set. It will fail at trying to chown temporary download directories. Is syncing always expected to be running as root?
Please open a separate issue about this then 😊