LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Bedrock Linux (https://www.linuxquestions.org/questions/bedrock-linux-118/)
-   -   pmm --names-only for pacman mistake package for repository (https://www.linuxquestions.org/questions/bedrock-linux-118/pmm-names-only-for-pacman-mistake-package-for-repository-4175681069/)

Siljrath 08-26-2020 12:32 PM

pmm --names-only for pacman mistake package for repository
 
something gone squint with pmm and artix?
Code:

"pmm search -n st"
# (and --names-only)

ends on:
Code:

"error: repository "st" was not found."
for artix.

fetching an arch to test
~
yup, same output mistaking the package for a repository.

looking in
https://github.com/bedrocklinux/bedr...anagers/pacman
i see
Code:

user_interfaces["pacman", "search-for-package-by-name"]  = ""
and wonder if that
Code:

""
should contain something. ... but what? my pacman-fu no good.

~~~ maybe i should have left it there. ~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


testing the
Code:

implementations["pacman", "search-for-package-by-name"]  = "strat -r ${stratum} pacman -Sl ${items} | cut -d' ' -f2 | grep ${items}"
as
Code:

strat -r aurtix pacman -Sl st | cut -d' ' -f2 | grep st
gives the same
Code:

error: repository "st" was not found.
so maybe it's the
Code:

-Sl
at fault.

(my pacman-fu still no good, but...a stab in the dark...) i tried
Code:

strat -r aurtix pacman -Ql st | cut -d' ' -f2 | grep st
and it at least said package instead of repository:
Code:

error: package 'st' was not found
(my pacman-fu still no good, but...a stab in the dark...) i've also tried
Code:

strat -r aurtix pacman -Ss st | cut -d' ' -f2 | grep st
which did at least return 5 results for "post1"... leaving me wondering if the Ql was right... ... and a little more poking at
Code:

man pacman
and i wonder if...

Code:

strat -r aurtix pacman -Qs st | cut -d' ' -f2 | grep st
might be the ticket, returning nothing.... i should get a better package to test this with than st (just happened to be what i was looking for when getting into testing this).

Code:

strat -r aurtix pacman -Qs xz
gives
Code:

local/xz 5.2.5-1
    Library and command line tools for XZ and LZMA compressed files

and so
Code:

strat -r aurtix pacman -Qs xz | cut -d' ' -f2 | grep xz
gives... nothing. oh. [edit: (my cut-fu no good too?)]

well, i'm headspun stumped. time for a break from trying fathom this, and restore cognitive capacity with some R&R. :) gimmie a day, n i'll get this yet. :)
[edit: notions of regex and sed swirling around my mind]
[edit: strat -r aurtix pacman -Ss xz's output looks more right ~ ok ok, now i go r&r and get breakfast]

ParadigmComplex 08-26-2020 04:18 PM

I can reproduce the issue. Looks like a simple typo. Will have a fix in the next beta which should follow through to the following stable release.

ParadigmComplex 08-29-2020 11:07 AM

Here's the fix: https://github.com/bedrocklinux/bedr...e9542b617e2c39

Fix is released in 0.7.18beta4: https://github.com/bedrocklinux/bedr...ag/0.7.18beta4

Absent some big surprise it should be included in the stable branch in 0.7.18.

Siljrath 09-02-2020 11:58 AM

thanks.

ah, ok, so, presumably,

user_interfaces["pacman", "search-for-package-by-name"] = ""
&
user_interfaces["yay", "search-for-package-by-name"] = ""

dont need anything in that "". because pacman/yay dont have that.

ParadigmComplex 09-02-2020 08:10 PM

Correct


All times are GMT -5. The time now is 07:58 AM.