Changeset - da176135ad22
[Not reviewed]
search
0 1 0
Dennis Fink - 7 years ago 2013-03-08 08:07:18
the_metalgamer@hackerspace.lu
first function declaration for search function
1 file changed with 18 insertions and 0 deletions:
yaah
18
0 comments (0 inline, 0 general)
yaah
Show inline comments
...
 
@@ -142,6 +142,17 @@ error() {
 
}
 

	
 
#=== FUNCTION =================================================================
 
#        Name: search
 
# Description: Search packages in AUR
 
# Parameter *: 
 
#==============================================================================
 

	
 
search() {
 
    return 0
 
}
 

	
 

	
 
#=== FUNCTION =================================================================
 
#        Name: check_version
 
# Description: Check version between two packages and print a message if the
 
#              later one is newer
...
 
@@ -354,6 +365,7 @@ usage() {
 

	
 

	
 
check_flag=
 
search_flag=
 
verbose=0
 
quiet=0
 
downloaddir="$PWD"
...
 
@@ -393,6 +405,10 @@ while true; do
 
            quiet=1
 
            shift
 
            ;;
 
        -s|--search)
 
            search_flag=1
 
            shift
 
            ;;
 
        --)
 
            shift
 
            break
...
 
@@ -418,6 +434,8 @@ fi
 

	
 
if [[ "$check_flag" ]]; then
 
    query_local_version $@
 
elif [[ "$search_flag" ]]; then
 
    search $@
 
else
 
    download $@
 
fi
0 comments (0 inline, 0 general)