actionless / pikaur

AUR helper with minimal dependencies. Review PKGBUILDs all in once, next build them all without user interaction.
GNU General Public License v3.0
866 stars 87 forks source link

pikaur -Syua do not work well when there are some packages move from aur to official repos. #515

Closed lisongmin closed 4 years ago

lisongmin commented 4 years ago
❯ pikaur --version

      /:}               _
     /--1             / :}
    /   |           / `-/
   |  ,  --------  /   /
   |'                 Y      Pikaur v1.6.12
  /                   l      (C) 2018-2020 Pikaur development team
  l  /       \        l      Licensed under GPLv3
  j  ●   .   ●        l
 { )  ._,.__,   , -.  {      Pacman v5.2.2 - libalpm v12.0.2
  У    \  _/     ._/   \
Attached log:
❯ pikaur -Syua
:: Starting full AUR upgrade...
Reading repository package databases...
Reading local package database...
Reading AUR packages info...
:: warning: Following package cannot be found in AUR:
    pygobject-devel
:: Nothing to do.
❯ pikaur -Ss pygobject-devel
Searching... [###]
extra/python-gobject 3.38.0-1 [installed: 3.36.1-1]
    Python Bindings for GLib/GObject/GIO/GTK+
aur/pygobject-devel-git 3.27.1+1+gdf77beb7-1 [outofdate: 2020/03/30] (1, 0.01)
    Common development files for pygobject

❯ sudo pacman -Syu
:: Synchronizing package databases...
 core                                                                                                              130.8 KiB  7.52 MiB/s 00:00 [########################################################################################] 100%
 extra                                                                                                            1640.2 KiB  22.9 MiB/s 00:00 [########################################################################################] 100%
 community                                                                                                           5.2 MiB  23.0 MiB/s 00:00 [########################################################################################] 100%
 archlinuxcn                                                                                                      1280.4 KiB   695 KiB/s 00:02 [########################################################################################] 100%
:: Starting full system upgrade...
:: Replace pygobject-devel with extra/python-gobject? [Y/n] y
resolving dependencies...
looking for conflicting packages...
actionless commented 4 years ago

which of those is unpexpected behavior?

lisongmin commented 4 years ago

which of those is unpexpected behavior?

There are many softwares should be upgrade, but pikaur left with nothing to do which is unexpected.

❯ pikaur -Syua
:: Starting full AUR upgrade...
Reading repository package databases...
Reading local package database...
Reading AUR packages info...
:: warning: Following package cannot be found in AUR:
    pygobject-devel
:: Nothing to do.

Sincepygobject-devel is already moved from aur to official repo, pikaur should ignore the missing in aur and continue upgrade action?

lisongmin commented 4 years ago

Expect the same behavior with pacman like that:

❯ sudo pacman -Syu
:: Synchronizing package databases...
 core                                                                                                              130.8 KiB  7.52 MiB/s 00:00 [########################################################################################] 100%
 extra                                                                                                            1640.2 KiB  22.9 MiB/s 00:00 [########################################################################################] 100%
 community                                                                                                           5.2 MiB  23.0 MiB/s 00:00 [########################################################################################] 100%
 archlinuxcn                                                                                                      1280.4 KiB   695 KiB/s 00:02 [########################################################################################] 100%
:: Starting full system upgrade...
:: Replace pygobject-devel with extra/python-gobject? [Y/n] y
resolving dependencies...
looking for conflicting packages...
actionless commented 4 years ago

❯ pikaur -Syua ❯ sudo pacman -Syu

Expect the same behavior with pacman

in that case use the same command line arguments as well