Changeset - 760c37b50d20
[Not reviewed]
default
0 1 0
Dennis Fink (metalgamer) - 5 years ago 2015-08-20 00:29:15
dennis.fink@c3l.lu
Remove categories, as with aur4 there are no more categories
1 file changed with 1 insertions and 25 deletions:
yaah
1
25
0 comments (0 inline, 0 general)
yaah
Show inline comments
...
 
@@ -77,29 +77,6 @@ readonly ALL_OFF BOLD RED GREEN YELLOW B
 
alias jshon='jshon -Q'
 
alias curl='curl -s -fL'
 

	
 
# Categories
 
declare -A CATEGORIES=(['1']='none' \
 
            ['2']='daemons' \
 
            ['3']='devel' \
 
            ['4']='editors' \
 
            ['5']='emulators' \
 
            ['6']='games' \
 
            ['7']='gnome' \
 
            ['8']='i18n' \
 
            ['9']='kde' \
 
            ['10']='lib' \
 
            ['11']='modules' \
 
            ['12']='multimedia' \
 
            ['13']='network' \
 
            ['14']='office' \
 
            ['15']='science' \
 
            ['16']='system' \
 
            ['17']='x11' \
 
            ['18']='xfce' \
 
            ['19']='kernels')
 

	
 
readonly CATEGORIES
 

	
 
#=== FUNCTION =================================================================
 
#        Name: msg
 
# Description: Print message with a green pretag if $quiet is not set
...
 
@@ -227,7 +204,6 @@ search() {
 
        local package_description=$(fold -sw "$COLS" <<< "$(jshon -e Description <<< "$package")")
 
        local out_of_date=$(jshon -e OutOfDate <<< "$package")
 
        local num_votes=$(jshon -e NumVotes <<< "$package")
 
        local category=${CATEGORIES[$(jshon -e CategoryID <<< "$package")]}
 
        local maintainer=$(jshon -e Maintainer <<< "$package")
 
        local last_modified=$(jshon -e LastModified <<< "$package")
 

	
...
 
@@ -243,7 +219,7 @@ search() {
 
        else
 
            local color="${RED}"
 
        fi
 
        printf "${PURPLE}%s/${ALL_OFF}%s ${color}%s${ALL_OFF} ${BLUE}%s${ALL_OFF} ${YELLOW}%s${ALL_OFF} ${CYAN}%s${ALL_OFF}\n%s\n" "$category" "$package_name" "$package_version" "$last_modified" "$num_votes" "$maintainer" "$package_description"
 
        printf "${PURPLE}%s${ALL_OFF} ${color}%s${ALL_OFF} ${BLUE}%s${ALL_OFF} ${YELLOW}%s${ALL_OFF} ${CYAN}%s${ALL_OFF}\n%s\n" "$package_name" "$package_version" "$last_modified" "$num_votes" "$maintainer" "$package_description"
 

	
 
    done
 
}
0 comments (0 inline, 0 general)