You are not logged in.

#1 2014-06-08 09:46:45

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 241

Any way to exclude words from an AUR search?

I've been looking through the orphaned packages and seeing what I could adopt and maintain, but as there are nearly 12000 orphans, I have to filter it somehow!

I was wondering if there was a way to exclude words from the search, for example

-(git,svn,gstreamer,mono,theme,vim)

and then show any orphans that don't contain those words to help narrow the list down to ones that I might want to adopt?

...or a regex search?

Offline

#2 2014-06-08 10:02:51

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: Any way to exclude words from an AUR search?

get a list of all orphans then filter it locally


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2014-06-08 12:51:12

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 241

Re: Any way to exclude words from an AUR search?

Is that easier than it seems to be? I can't find a way to get a list of them all at once

I can't find a link on the AUR for this
Doesnt seem to be a way to get https://aur.archlinux.org/rpc.php to "list all"
Doesn't seem to be an option in yaourt
I found the AUR git mirror... but that's a mirror of the entire thing, not just a list
I found "aurphan", but that's only for currently installed packages


Best way I could think of (which would be very messy) is some kind of shell script to do something like

for (1 to pagesOfOrphans) do wget $page -O - | html2txt >>AURlist.txt

from https://aur.archlinux.org/packages/?do_Orphans=Orphans
(yes, I know that's only pseudo-code, there'd be parsing to add in...)

Last edited by stevenhoneyman (2014-06-08 12:56:18)

Offline

#4 2014-06-08 15:54:32

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: Any way to exclude words from an AUR search?

Not an answer to your question, have you seen aurphan ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2014-06-08 15:56:28

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 241

Re: Any way to exclude words from an AUR search?

stevenhoneyman wrote:

...
I found "aurphan", but that's only for currently installed packages
...

ewaller wrote:

Not an answer to your question, have you seen aurphan ?

Yeah, I was hopeful when it appeared in a google search - but I installed it and got the "no orphans found" (as it only checks installed packages, at least for AUR anyway)

Offline

#6 2014-06-08 16:18:00

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: Any way to exclude words from an AUR search?

I have to stop just skimming threads before posting.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#7 2014-06-08 16:18:28

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 241

Re: Any way to exclude words from an AUR search?

wink

Offline

#8 2014-06-08 21:23:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Any way to exclude words from an AUR search?

ewaller wrote:

I have to stop just skimming threads before posting.

I have an idea for a drinking game: every time you misread a post, you have to pour a bottle of some tasty beverage down the drain :-)


https://aur.archlinux.org/packages/aurlist/ doesn't seem to offer a way of finding orphans.
What's the point of maintaining a package you don't use? If you want, you can pick some popular unmaintained package. I think you can just browse through the list https://aur.archlinux.org/packages/?do_Orphans=Orphans - it's not like you'll pick hundreds of packages at a time.

Offline

#9 2014-06-08 21:32:42

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 241

Re: Any way to exclude words from an AUR search?

Hmmmm, that's what I meant in my pseudo-script in the post above... I guess if someone's already written it, might as well use it!

A quick look and it should be adaptable to get just orphans simply by changing

webpath='https://aur.archlinux.org/packages/?O=%start&C=0&SeB=nd&SB=n&SO=a&PP=%perpage&do_Search=Go'

to include "&do_Orphans=Orphans" (and possibly remove some of the other params)

To answer your question - I'm still new here, and they won't let me play with the useful stuff yet sad
<cough>https://bugs.archlinux.org/task/40590</cough> (I offered a fully written solution weeks ago and nobody's even asked to see it)

So I'm hoping by sticking around for a while and doing some menial tasks like updating/fixing orphaned AUR packages that I'll have a good track record for applying to become a TU.

...that, and it's kind of interesting too!

Last edited by stevenhoneyman (2014-06-08 21:33:25)

Offline

#10 2014-06-08 21:50:08

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: Any way to exclude words from an AUR search?

karol wrote:
ewaller wrote:

I have to stop just skimming threads before posting.

I have an idea for a drinking game: every time you misread a post, you have to pour a bottle of some tasty beverage down the drain :-)

In my defense, it was just a bit early for any adult beverages.  The problem this morning was a lack of coffee.  Not much point dumping that out.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#11 2014-06-09 11:47:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Any way to exclude words from an AUR search?

ewaller wrote:

The problem this morning was a lack of coffee.  Not much point dumping that out.

I used to drink a lot of cheap, over-strong coffee. If I poured it into the sink and not in me belly, I'm sure it would clean the pipes. I think the coffee was gravel-based, so it would degrease and scrub the drains / sewerage in one go ;P


stevenhoneyman, why do you want to exclude git and svn packages from your list?

Offline

#12 2014-06-09 16:43:07

stevenhoneyman
Member
From: England
Registered: 2014-05-25
Posts: 241

Re: Any way to exclude words from an AUR search?

karol wrote:

stevenhoneyman, why do you want to exclude git and svn packages from your list?

Simply because if there's a bad commit upstream, I'd be expected to fix it at this end big_smile (or at least determine the cause of the problem)
...which of course is fine if it was something I wanted to use myself (wxhexeditor-svn for example I currently maintain the package for), but not just as a time-filler for unstable development source

Offline

Board footer

Powered by FluxBB