You are not logged in.

#1 2022-03-11 22:28:32

marco.it
Member
From: Cagliari (Italy)
Registered: 2006-10-30
Posts: 19

surfraw: elvi aur needs a patch

Hi all,
currently the elvi aur doesn't work. I've made a patch. It works

--- aur_orig	2020-05-25 18:07:37.000000000 +0200
+++ aur_new	2022-03-11 23:00:58.717131961 +0100
@@ -44,9 +44,10 @@
                                 Default: $SURFRAW_aur_results
                                 Must be in range 25-100
   -search=                      Search for one of...
-          name          |       Package name
-          maintainer    |       Maintainer
-          submitter     |       Submitter
+          n             |       Package name
+          m             |       Maintainer
+          s             |       Submitter
+          N             |       Exact name
                                 Default: name
   -sort=                        Sort by...
         name            |       Package name
@@ -109,6 +110,7 @@
   n*) aur_search_by=nd ;;
   m*) aur_search_by=m ;;
   s*) aur_search_by=s ;;
+  N*) aur_search_by=N ;;
   *)  aur_search_by=nd ;;
 esac
 
@@ -139,8 +141,9 @@
 else
     escaped_args=`w3_url_of_arg $w3_args`
     if [ "$SURFRAW_aur_outdated" = 1 ]; then
-        w3_browse_url "${SURFRAW_aur_protocol}://aur.archlinux.org/packages.php?O=0&L=0&detail=1&C=${aur_category}&K=${escaped_args}&SeB=${aur_search_by}&SB=${aur_sort_by}&SO=${SURFRAW_aur_order}&PP=${SURFRAW_aur_results}&do_${SURFRAW_aur_action}&outdated=on&setlang=${aur_lang}"
+        w3_browse_url "${SURFRAW_aur_protocol}://aur.archlinux.org/packages?O=0&L=0&detail=1&k=${aur_category}&K=${escaped_args}&SeB=${aur_search_by}&SB=${aur_sort_by}&SO=${SURFRAW_aur_order}&PP=${SURFRAW_aur_results}&do_${SURFRAW_aur_action}&outdated=on&setlang=${aur_lang}"
+
     else
-        w3_browse_url "${SURFRAW_aur_protocol}://aur.archlinux.org/packages.php?O=0&L=0&detail=1&C=${aur_category}&K=${escaped_args}&SeB=${aur_search_by}&SB=${aur_sort_by}&SO=${SURFRAW_aur_order}&PP=${SURFRAW_aur_results}&do_${SURFRAW_aur_action}&setlang=${aur_lang}"
+        w3_browse_url "${SURFRAW_aur_protocol}://aur.archlinux.org/packages?O=0&L=0&detail=1&K=${aur_category}&K=${escaped_args}&SeB=${aur_search_by}&SB=${aur_sort_by}&SO=${SURFRAW_aur_order}&PP=${SURFRAW_aur_results}&do_${SURFRAW_aur_action}&setlang=${aur_lang}"

     fi
 fi

Last edited by marco.it (2022-03-12 00:18:03)


Linux User: #443055 (http://counter.li.org)

Offline

#2 2022-03-11 22:31:32

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: surfraw: elvi aur needs a patch

You can submit it as a PR to the project here: https://gitlab.com/surfraw/Surfraw


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2022-03-12 00:14:21

marco.it
Member
From: Cagliari (Italy)
Registered: 2006-10-30
Posts: 19

Re: surfraw: elvi aur needs a patch

Thanks. I've commented an existing PR
https://gitlab.com/surfraw/Surfraw/-/issues/27


Linux User: #443055 (http://counter.li.org)

Offline

#4 2023-09-19 16:41:26

waitnsea
Member
From: France
Registered: 2013-02-10
Posts: 61

Re: surfraw: elvi aur needs a patch

surfraw still broken searching aur, but surfraw-git works well

Offline

#5 2023-09-29 12:39:53

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: surfraw: elvi aur needs a patch

Normally Arch packages use the latest stable release, but there was no release since five years. So for this one probably an exception should be considered.

Offline

Board footer

Powered by FluxBB