Giter Site home page Giter Site logo

Comments (15)

dangerfish96 avatar dangerfish96 commented on July 23, 2024 1

I meant that "Proceed with installation? [Y/n]" should not be asked, as no packets have to be upgraded

from pikaur.

actionless avatar actionless commented on July 23, 2024

no, it's just indeed not implemented (yet) :-)

from pikaur.

dangerfish96 avatar dangerfish96 commented on July 23, 2024

But shouldn't there be a message like "Already up-to-date.", since no packets need an upgrade?

from pikaur.

actionless avatar actionless commented on July 23, 2024

that happens only if you choose m, i will implement that in the next week or so

from pikaur.

actionless avatar actionless commented on July 23, 2024

weird, i've tried and seems to be fine, could you update to the latest version and try again?

$ ./pikaur.py -Syu --ignore pokemon-revolution-online-bin
:: Synchronizing package databases...
 core is up to date
 extra                                          1595.1 KiB  15.4M/s 00:00 [------------------------------------------] 100%
 community                                         4.1 MiB  43.2M/s 00:00 [------------------------------------------] 100%
 multilib is up to date
 heftig is up to date
:: Starting full system upgrade...
Reading repository package databases.......................................................................................
:: Starting full AUR upgrade...
Reading local package database.............................................................................................
:: warning: Following packages can not be found in AUR:
    awesome_config_actionless_meta
    protoplug
    scrot-patched
    urbanterror-data

:: Already up-to-date.

from pikaur.

dangerfish96 avatar dangerfish96 commented on July 23, 2024

I tried with the newest version and problem persists, but I don't know how to debug it

from pikaur.

actionless avatar actionless commented on July 23, 2024
  1. double-check what version is at least 0.5+12
  2. to debug it you can print out the condition used to determine if prompt should be shown or not:
diff --git a/pikaur/main.py b/pikaur/main.py
index ae38688..a729243 100644
--- a/pikaur/main.py
+++ b/pikaur/main.py
@@ -89,6 +89,7 @@ def cli_upgrade_packages(args):
     ] + [
         u.Name for u in aur_updates
     ]
+    print(all_upgradeable_package_names)
     if all_upgradeable_package_names:
         cli_install_packages(
             args=args,

from pikaur.

dangerfish96 avatar dangerfish96 commented on July 23, 2024

I found the culprit. If packages are on the NoUpgrade list of pacman, than the check (line 92) does not ignore them.
In my case it is linux-lts which should be ignored by the check.
If I do 'pikaur -Syu --ignore linux-lts' it works as expected.

from pikaur.

actionless avatar actionless commented on July 23, 2024

https://www.archlinux.org/pacman/pacman.conf.5.html

 NoUpgrade = file …

All files listed with a NoUpgrade directive will never be touched during a package install/upgrade, and the new files will be installed with a .pacnew extension. These files refer to files in the package archive, so do not include the leading slash (the RootDir) when specifying them. Shell-style glob patterns are allowed. It is possible to invert matches by prepending a file with an exclamation mark. Inverted files will result in previously blacklisted files being whitelisted again. Subsequent matches will override previous ones. A leading literal exclamation mark or backslash needs to be escaped.

from pikaur.

dangerfish96 avatar dangerfish96 commented on July 23, 2024

Is it possible to add the following?

diff --git a/pikaur/meta_package.py b/pikaur/meta_package.py
index d912d86..f201f16 100644
--- a/pikaur/meta_package.py
+++ b/pikaur/meta_package.py
@@ -33,7 +33,9 @@ def find_repo_updates():
     repo_packages_updates = []
     repo_pkgs_info = PackageDB.get_repo_dict()
     for update in packages_updates_lines:
-        pkg_name, current_version, _, new_version, *_ = update.split()
+        pkg_name, current_version, _, new_version, ignored, *_ = update.split()
+        if (ignored == "[ignored]"):
+            continue
         pkg_info = repo_pkgs_info[pkg_name]
         repo_packages_updates.append(
             PackageUpdate(

This ignores packages that are ignored by pacman

from pikaur.

actionless avatar actionless commented on July 23, 2024

i think it will raise ValueError: not enough values to unpack in a lot of cases

but i am still not able to reproduce your setup and problem, mb you could elaborate more on that part?

from pikaur.

dangerfish96 avatar dangerfish96 commented on July 23, 2024

This is how one can probably reproduce this:

  • Find a packet from pacman that can be upgraded
  • Specify it in "IgnorePkg" of pacman.conf (Made a mistake before, it is not "NoUpgrade")
  • run "pikaur -Syu"

from pikaur.

actionless avatar actionless commented on July 23, 2024

could you try with this patch?

diff --git a/pikaur/install_cli.py b/pikaur/install_cli.py
index f7e09b1..0d52e69 100644
--- a/pikaur/install_cli.py
+++ b/pikaur/install_cli.py
@@ -90,7 +90,9 @@ class InstallPackagesCLI():
         self.args = args

         packages = packages or args.positional
+        print(packages)
         exclude_ignored_packages(packages, args)
+        print(packages)
         self.find_packages(packages)

         if not args.noconfirm:

and show the output

from pikaur.

dangerfish96 avatar dangerfish96 commented on July 23, 2024
./pikaur.py -Syu         
:: Synchronising package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 blackarch is up to date
:: Starting full system upgrade...
Reading repository package databases............................................................
:: Starting full AUR upgrade...
Reading local package database..................................................................
['linux-lts']
[]
resolving dependencies...

:: Proceed with installation? [Y/n] 
:: [v]iew package detail   [m]anually select packages

from pikaur.

actionless avatar actionless commented on July 23, 2024

thank you for your patience while debugging!

from pikaur.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.