You are not logged in.

#1 2018-03-25 11:39:27

lord_rel
Member
Registered: 2007-04-04
Posts: 36

Is there a way to filter Haskell from the recent update list

Is there a way to filter the at least once daily haskell update flood? it makes it harder to see the other updates in the recent updates package list

Offline

#2 2018-03-25 12:42:35

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Is there a way to filter Haskell from the recent update list

Common filters are awk, sed and grep. They should work fine on RSS feeds.

Offline

#3 2018-03-25 12:49:53

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Is there a way to filter Haskell from the recent update list

Well, this is xml so you'll probably want an XPath instead...


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#4 2018-03-27 07:51:21

lord_rel
Member
Registered: 2007-04-04
Posts: 36

Re: Is there a way to filter Haskell from the recent update list

Can anyone make a greasemonkey script to do the filtering please?

Offline

#5 2018-03-27 08:17:49

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: Is there a way to filter Haskell from the recent update list

Personally I use this personal script which I called 'newpkgs':

#!/bin/bash
stlink1='http://www.archlinux.org/packages/?sort=-last_update'
stlink2='http://www.archlinux.org/packages/?page=2&sort=-last_update'
stlink3='http://www.archlinux.org/packages/?page=3&sort=-last_update'

if [[ $# -eq 0 ]]; then
    wrepos='&repo=Core&repo=Extra&repo=Community'
elif [[ $1 == 1 ]]; then
    wrepos='&repo=Core'
elif [[ $1 == 2 ]]; then
    wrepos='&repo=Extra'
elif [[ $1 == 3 ]]; then
    wrepos='&repo=Community'
elif [[ $1 == 12 ]]; then
    wrepos='&repo=Core&repo=Extra'
elif [[ $1 == 13 ]]; then
    wrepos='&repo=Core&repo=Community'
elif [[ $1 == 23 ]]; then
    wrepos='&repo=Extra&repo=Community'
else
    echo '
    Usage: newpkgs [1|2|3|12|13|23]
    1 Core
    2 Extra
    3 Community
    
    default 123
    '
    exit 1
fi

stlink1=${stlink1}${wrepos}
stlink2=${stlink2}${wrepos}
stlink3=${stlink3}${wrepos}
lynx -cfg=~/.lynxrc -dump -width=1024 -nolist $stlink1 $stlink2 $stlink3 |\
    sed -n '/^ *\(x86_64\|any\)/{
            s/^\(.*....-..-..\)   ....-..-..$/\1/
            s/^\(.*\)\(....-..-..\)$/\2\1/p
        }'

I can easily filter the result through grep, like this:

newpkgs | grep -v -e haskell -e i18n | less

Offline

Board footer

Powered by FluxBB