diff --git a/jka-toolkit/apw b/jka-toolkit/apw index a36c6bd..2e3f224 100755 --- a/jka-toolkit/apw +++ b/jka-toolkit/apw @@ -10,7 +10,7 @@ export TEXTDOMAIN='apw' export TEXTDOMAINDIR='/usr/share/locale' #Version variable -version="1.6.1" +version="1.6.2" #This option is for make if case insensitive shopt -s nocasematch @@ -84,9 +84,14 @@ SO=$(cat /etc/apw.conf) #Reading packages to install/remove.. (The rest of $) , it has to be done before the option echo, logically packages=$2 +#Control the incompleted arguments +if [ -z $package ];then + echo "$(gettext "No package specified, aborting")" + exit +fi for (( i=3; i<=$#; i++ )) do - valtmp=$(echo $* | cut -f$i -d" ") + valtmp=$(echo $* | cut -f$i -d" ") packages="$packages $valtmp" done @@ -264,4 +269,4 @@ if [[ $SO = "pacman" ]];then *Rd) pacman -Rs $packages;; esac -fi \ No newline at end of file +fi diff --git a/jka-toolkit/i18n/apw/apw.pot b/jka-toolkit/i18n/apw/apw.pot index d07b9b0..9fc5256 100644 --- a/jka-toolkit/i18n/apw/apw.pot +++ b/jka-toolkit/i18n/apw/apw.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-06-06 20:17+0200\n" +"POT-Creation-Date: 2016-06-07 13:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -82,7 +82,7 @@ msgstr "" msgid "apw - A Packager Wrapper" msgstr "" -#: apw:39 apw:258 +#: apw:39 apw:263 msgid "Use apw -h for help" msgstr "" @@ -104,64 +104,68 @@ msgid "" "delete this file)" msgstr "" -#: apw:102 +#: apw:89 +msgid "No package specified, aborting" +msgstr "" + +#: apw:107 msgid "Updating system" msgstr "" -#: apw:122 +#: apw:127 msgid "Not supported on your distribution. Use -U instead" msgstr "" -#: apw:126 apw:137 +#: apw:131 apw:142 msgid "You are going to install %s and dependencies" msgstr "" -#: apw:145 +#: apw:150 msgid "Not supported on your distribution. Use -I instead" msgstr "" -#: apw:149 +#: apw:154 msgid "You are going to reinstall %s" msgstr "" -#: apw:167 +#: apw:172 msgid "Not supported on your distribution. Use -Ir instead" msgstr "" -#: apw:171 apw:181 +#: apw:176 apw:186 msgid "You are going to remove %s" msgstr "" -#: apw:188 +#: apw:193 msgid "Not supported on your distribution. Use -R instead" msgstr "" -#: apw:192 apw:201 +#: apw:197 apw:206 msgid "Removing %s along with his dependencies that are not more in use" msgstr "" -#: apw:198 apw:207 apw:224 apw:234 +#: apw:203 apw:212 apw:229 apw:239 msgid "Not supported on your distribution" msgstr "" -#: apw:210 +#: apw:215 msgid "Cleaning package manager" msgstr "" -#: apw:227 +#: apw:232 msgid "" "Cleaning system from dependencies that are not in use (BE CAREFUL, ONLY " "ADVANCED)" msgstr "" -#: apw:237 +#: apw:242 msgid "Searching %s" msgstr "" -#: apw:246 +#: apw:251 msgid "Installing files: %s" msgstr "" -#: apw:257 +#: apw:262 msgid "Invalid option especified" msgstr "" diff --git a/jka-toolkit/i18n/apw/es.mo b/jka-toolkit/i18n/apw/es.mo index 3a34282..2636f28 100644 Binary files a/jka-toolkit/i18n/apw/es.mo and b/jka-toolkit/i18n/apw/es.mo differ diff --git a/jka-toolkit/i18n/apw/es.po b/jka-toolkit/i18n/apw/es.po index 0d4939d..59aea8d 100644 --- a/jka-toolkit/i18n/apw/es.po +++ b/jka-toolkit/i18n/apw/es.po @@ -22,37 +22,37 @@ msgstr "" msgid "apw - A Packager Wrapper, a Idea from JKA Network, version %s" msgstr "apw - A Package Wrapper, una idea de JKA Network, versión %s" -#: apw:22 +#: apw:23 msgid "\tUsage: apw