Changeset - 958b890f7982
[Not reviewed]
default
0 2 0
Dennis Fink - 7 years ago 2013-06-14 18:38:32
the_metalgamer@hackerspace.lu
added last_updated to search
2 files changed with 8 insertions and 7 deletions:
0 comments (0 inline, 0 general)
README.rst
Show inline comments
...
 
@@ -9,7 +9,7 @@ Yet another AUR helper
 
:Author:         Dennis Fink <the_metalgamer@hackerspace.lu>
 
:Date:           2013-05-19
 
:Copyright:      GPLv3+
 
:Version:        Yaah 0.4.3
 
:Version:        Yaah 0.4.4
 
:Manual section: 8
 
:Manual group:   Yaah Manual
 

	
yaah
Show inline comments
...
 
@@ -11,9 +11,9 @@
 
#:               -q, --quiet                            Be less verbose. Takes precedence over -v and --verbose
 
#:               --version                              Prints version and exits
 
#: Requirements: jshon <http://kmkeen.com/jshon/>, pacman, tar, curl
 
#:      Version: 0.4.3
 
#:      Version: 0.4.4
 
#:      Created: 2013-02-26
 
#:     Revision: 2013-05-27
 
#:     Revision: 2013-06-11
 
#:       Author: Dennis Fink <the_metalgamer@hackerspace.lu>
 

	
 
## Security
...
 
@@ -36,8 +36,8 @@ shopt -s expand_aliases
 
SCRIPTNAME=${0##*/}
 
DESCRIPTION="Yet another AUR helper"
 
DATE_OF_CREATION=2013-02-26
 
DATE_OF_REVISION=2013-05-27
 
VERSION=0.4.3
 
DATE_OF_REVISION=2013-06-11
 
VERSION=0.4.4
 
AUTHOR="Dennis Fink <the_metalgamer@hackerspace.lu>"
 

	
 
readonly SCRIPTNAME DESCRIPTION DATE_OF_CREATION DATE_OF_REVISION VERSION AUTHOR
...
 
@@ -211,20 +211,21 @@ search() {
 
        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")
 

	
 
        # removing quotes
 
        package_name=${package_name//\"}
 
        package_version=${package_version//\"}
 
        package_description=${package_description//\"}
 
        maintainer=${maintainer//\"}
 

	
 
        last_modified=$(date -d @$last_modified)
 

	
 
        if [[ $out_of_date -eq 0 ]]; then
 
            local color="${GREEN}"
 
        else
 
            local color="${RED}"
 
        fi
 
        printf "\n${PURPLE}$category/${ALL_OFF}$package_name ${color}$package_version${ALL_OFF} ${YELLOW}$num_votes${ALL_OFF} ${CYAN}$maintainer${ALL_OFF}\n$package_description\n"
 
        printf "\n${PURPLE}$category/${ALL_OFF}$package_name ${color}$package_version${ALL_OFF} ${BLUE}$last_modified${ALL_OFF} ${YELLOW}$num_votes${ALL_OFF} ${CYAN}$maintainer${ALL_OFF}\n$package_description\n"
 

	
 
    done
 
}
0 comments (0 inline, 0 general)