yay icon indicating copy to clipboard operation
yay copied to clipboard

Database synchronization runs twice

Open ghost opened this issue 10 months ago • 1 comments

Affected Version

yay v12.4.2 - libalpm v15.0.0 (but it's always been like this)

Describe the bug

not sure if it is actually a bug, but it seems something so useless that i decided to finally report it. basically the database gets synced twice, when you first run the upgrade command and then again after confirming to proceed with the upgrade.

Reproduction Steps

  1. yay -Syu
  2. proceed with upgrade
  3. second (useless) database synchronization

Expected behavior

since the database has already been synced before confirming the upgrade, then it should just download the packages, not syncing everything again.

Output

{ "aururl": "https://aur.archlinux.org", "aurrpcurl": "https://aur.archlinux.org/rpc?", "buildDir": "/home/l/.cache/yay", "editor": "", "editorflags": "", "makepkgbin": "makepkg", "makepkgconf": "", "pacmanbin": "pacman", "pacmanconf": "/etc/pacman.conf", "redownload": "no", "answerclean": "", "answerdiff": "", "answeredit": "", "answerupgrade": "", "gitbin": "git", "gpgbin": "gpg", "gpgflags": "", "mflags": "", "sortby": "votes", "searchby": "name-desc", "gitflags": "", "removemake": "ask", "sudobin": "sudo", "sudoflags": "", "version": "12.0.4", "requestsplitn": 150, "completionrefreshtime": 7, "maxconcurrentdownloads": 0, "bottomup": true, "sudoloop": false, "timeupdate": false, "devel": false, "cleanAfter": false, "keepSrc": false, "provides": true, "pgpfetch": true, "cleanmenu": true, "diffmenu": true, "editmenu": false, "combinedupgrade": true, "useask": false, "batchinstall": false, "singlelineresults": false, "separatesources": true, "debug": false, "rpc": true, "doubleconfirm": true, "rebuild": "no" }

ghost avatar Feb 28 '25 13:02 ghost

Hey, I'm missing the concrete example but this is to avoid partial upgrades during some long build cycles

Jguer avatar Mar 09 '25 21:03 Jguer