You are not logged in.

#1 2008-12-25 13:46:28

arch0r
Member
From: From the Chron-o-John
Registered: 2008-05-13
Posts: 597

[SOLVED] Yaourt search on AUR stopped working

hi all :>
yaourt's search engine was working quite nice until i booted up my computer this morning -.-
does anyone have an idea to solve this problem!? downloading + building from aur works great with yaourt just the search thingy is kinda broken -.-

can it be possible that it has to do something with my changes in sysctl.conf? i added several rules:

# Disable packet forwarding
net.ipv4.ip_forward=0

# Disable the magic-sysrq key
kernel.sysrq = 0

# Enable TCP SYN Cookie Protection
net.ipv4.tcp_syncookies = 1

# Source Address verification
net.ipv4.conf.all.rp_filter = 1

# Block Ping
net.ipv4.icmp_echo_ignore_all = 1

net.ipv4.tcp_timestamps = 0

net.ipv4.conf.all.accept_source_route=0
net.ipv4.icmp_echo_ignore_broadcasts=1
net.ipv4.icmp_ignore_bogus_error_responses=1

best regards :>

Last edited by arch0r (2008-12-29 19:37:54)

Offline

#2 2008-12-25 14:04:08

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 1,965
Website

Re: [SOLVED] Yaourt search on AUR stopped working

Recently some updates for the AUR website have been deployed.  Probably something has changed, breaking yaourt's search feature.

I can confirm yaourt searching doesn't work anymore.


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#3 2008-12-25 14:11:10

arch0r
Member
From: From the Chron-o-John
Registered: 2008-05-13
Posts: 597

Re: [SOLVED] Yaourt search on AUR stopped working

ok smile, that's good to hear. are there any official information that i didn't get!?

Offline

#4 2008-12-25 17:57:35

arsenist
Member
Registered: 2008-07-06
Posts: 30

Re: [SOLVED] Yaourt search on AUR stopped working

I confirm, doesn't work for me too smile

Offline

#5 2008-12-25 18:14:24

Berseker
Member
From: Near Lecco, Italy
Registered: 2008-04-24
Posts: 258

Re: [SOLVED] Yaourt search on AUR stopped working

mee too, and some other guys on the italian forum are experiencing this problem too.

Offline

#6 2008-12-25 18:18:53

Kérer
Member
Registered: 2008-05-16
Posts: 6

Re: [SOLVED] Yaourt search on AUR stopped working

So do I in my two computers

Last edited by Kérer (2008-12-25 18:19:05)

Offline

#7 2008-12-25 23:25:41

Wintershade
Member
From: Croatia
Registered: 2008-02-18
Posts: 175
Website

Re: [SOLVED] Yaourt search on AUR stopped working

confirmed, doesn't work on my laptop (didn't test on the desktop, running gentoo there atm).
but I wouldn't put a happy smiley there, though sad


Only the best is good enough.

Offline

#8 2008-12-25 23:29:15

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [SOLVED] Yaourt search on AUR stopped working

Same here, although I use the git version. We'll see, I guess the developer will see this problem fast and update it ... at least I hope wink

Offline

#9 2008-12-26 06:06:03

hubertstar
Member
Registered: 2008-04-10
Posts: 22

Re: [SOLVED] Yaourt search on AUR stopped working

Edit /usr/bin/yaourt

in function search_on_aur

change this line

    wget -q "${AUR_URL}${1}" -O - | grep -A 2 "<a href='/packages.php?ID=" \

to

    wget -q "${AUR_URL}${1}" -O - | grep -A 2 "<a href='packages.php?ID=" \


but description is missing. So waiting yaourt update...

Offline

#10 2008-12-26 06:35:51

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: [SOLVED] Yaourt search on AUR stopped working

haven't had any problems here...


.:[My Blog] || [My GitHub]:.

Offline

#11 2008-12-26 11:33:24

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: [SOLVED] Yaourt search on AUR stopped working

It's stopped for me as well. *sigh*

Offline

#12 2008-12-26 11:56:11

Berseker
Member
From: Near Lecco, Italy
Registered: 2008-04-24
Posts: 258

Re: [SOLVED] Yaourt search on AUR stopped working

with the temporary solution found by hubertstar, I almost can search the packages names... I'm sure the mantainers will solve this problem as fast as they can ( it's christmas time so we'll have to be patient)

Offline

#13 2008-12-26 12:51:08

Neverlasting
Member
Registered: 2008-12-26
Posts: 13

Re: [SOLVED] Yaourt search on AUR stopped working

I've come up with a workaround. It's quick and probably dirty, but it enables me to search the packages and view the descriptions.

--- yaourt.orig    2008-12-26 13:12:42.000000000 +0100
+++ /usr/bin/yaourt    2008-12-26 13:23:45.000000000 +0100
@@ -1253,9 +1253,9 @@
    _pkg=`echo $1 | sed 's/ AND / /'`
    title $(eval_gettext 'searching for $_pkg on AUR')
    [ "$MAJOR" = "interactivesearch" ] && i=$(($(wc -l $searchfile | awk '{print $1}')+1))
-    wget -q "${AUR_URL}${1}" -O - | grep -A 2 "<a href='/packages.php?ID=" \
+    wget -q "${AUR_URL}${1}" -O - | grep -A 3 "<a href='packages.php?ID=" \
    | sed -e "s/<\/span>.*$//" -e "s/^.*packages.php?ID=.*span class.*'>/aur\//" -e "s/^.*span class.*'>//" \
-    | grep -v " " | grep -v "^--" |
+    | grep -v " " | grep -v "^--" | grep -v "^$" |
    while read line; do
        if [ "${line%\/*}" = "aur" ]; then
            package=$(echo $line | awk '{ print $1}' | sed 's/^.*\///')

Offline

#14 2008-12-26 17:37:29

hubertstar
Member
Registered: 2008-04-10
Posts: 22

Re: [SOLVED] Yaourt search on AUR stopped working

why not use:

http://aur.archlinux.org/rpc.php?type=search&arg=xxx

return json string and parse it ?

I notice get aur package info use http://aur.archlinux.org/rpc.php?type=info&arg=xxx,I think rpc.php search will better than html hack.

Offline

#15 2008-12-26 19:39:11

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,226
Website

Re: [SOLVED] Yaourt search on AUR stopped working

Install yaourt-git from aur. This solved the problem for me.

Offline

#16 2008-12-26 19:51:42

Berseker
Member
From: Near Lecco, Italy
Registered: 2008-04-24
Posts: 258

Re: [SOLVED] Yaourt search on AUR stopped working

Ashren wrote:

Install yaourt-git from aur. This solved the problem for me.

not for me.. compiled now yaourt-git from scratch. BTW, i will use the first suggestion by huberstar for now.

Offline

#17 2008-12-27 12:54:08

mykey
Member
From: out of the blue
Registered: 2007-03-02
Posts: 113

Re: [SOLVED] Yaourt search on AUR stopped working

I can confirm yaourt-git does not work, but changing the line:

    wget -q "${AUR_URL}${1}" -O - | grep -A 2 "<a href='/packages.php?ID=" \

to

    wget -q "${AUR_URL}${1}" -O - | grep -A 4 "<a href='packages.php?ID=" \

as metioned in the above post does - including descriptions - for the time being at least

Last edited by mykey (2008-12-27 12:54:59)

Offline

#18 2008-12-27 16:52:07

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: [SOLVED] Yaourt search on AUR stopped working

I am using yaourt version 0.9.1-1 and not having the problem, rebuilding yaourt may solve the problem

Offline

#19 2008-12-27 20:01:07

Neverlasting
Member
Registered: 2008-12-26
Posts: 13

Re: [SOLVED] Yaourt search on AUR stopped working

mykey wrote:

I can confirm yaourt-git does not work, but changing the line:

    wget -q "${AUR_URL}${1}" -O - | grep -A 2 "<a href='/packages.php?ID=" \

to

    wget -q "${AUR_URL}${1}" -O - | grep -A 4 "<a href='packages.php?ID=" \

as metioned in the above post does - including descriptions - for the time being at least

Are you sure that -A 4 is necessary? I've had no problems with -A 3 so far.

kgas: I also have 0.9.1-1, but the problem persists after reinstalling. Are you sure you tested this with packages in AUR? Because for packages that are not in AUR but in the normal repositories, Yaourt works without problems.

Offline

#20 2008-12-28 17:19:58

raven_oscar
Member
Registered: 2008-12-28
Posts: 14

Re: [SOLVED] Yaourt search on AUR stopped working

I also can confirm that search function in yaourt does not work for some time. But the salvation provided by hubertstar works at least for me. Thank you man.

Offline

#21 2008-12-28 17:41:03

Raist
Member
From: Vinaros , Castello , Spain
Registered: 2008-09-27
Posts: 4

Re: [SOLVED] Yaourt search on AUR stopped working

The new tupac's version works very fine .

Offline

#22 2008-12-28 22:21:45

angrycore
Member
Registered: 2008-04-21
Posts: 14

Re: [SOLVED] Yaourt search on AUR stopped working

yaourt output is a bit better if after changing the line:

wget -q "${AUR_URL}${1}" -O - | grep -A 2 "<a href='/packages.php?ID=" \

to

wget -q "${AUR_URL}${1}" -O - | grep -A 3 "<a href='packages.php?ID=" \

change also the line:

| grep -v " " | grep -v "^--" |

to

| grep -v " " | grep -v "^--" | sed '/^$/d' |

It suppress empty lines in the yaourt output.

Last edited by angrycore (2008-12-28 22:22:49)

Offline

#23 2008-12-29 19:25:57

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,226
Website

Re: [SOLVED] Yaourt search on AUR stopped working

I just wanted to say that the newest yaourt-git solved the problem for me. I was wrong earlier in this thread.

Offline

#24 2008-12-29 19:37:35

arch0r
Member
From: From the Chron-o-John
Registered: 2008-05-13
Posts: 597

Re: [SOLVED] Yaourt search on AUR stopped working

yaourt has been updated on the french repo. problem solved :>

Offline

#25 2008-12-29 19:39:52

Celeblin
Member
Registered: 2008-12-02
Posts: 20

Re: [SOLVED] Yaourt search on AUR stopped working

I confirm that. Problem solved on last update from official repository smile

Regards

Offline

Board footer

Powered by FluxBB