mirror of
https://gitlab.com/JKANetwork/jka-toolkit.git
synced 2026-02-15 17:41:31 +01:00
New option -f
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
export TEXTDOMAIN='apw'
|
||||
export TEXTDOMAINDIR='/usr/share/locale'
|
||||
#Version variable
|
||||
version="1.6.2"
|
||||
version="1.7"
|
||||
|
||||
#This option is for make if case insensitive
|
||||
shopt -s nocasematch
|
||||
@@ -32,6 +32,7 @@ case "$1" in
|
||||
echo "$(gettext " {-S | S} Search in package database")"
|
||||
echo "$(gettext " {-F | F} Install file (distro family dependent, e.g. .deb , .pkg.tar.xz,...)")"
|
||||
echo "$(gettext " Append y to -U or -I (-Uy -Iy -Iry) for autoconfirm the operations")"
|
||||
echo "$(gettext " Append f to -U (-Uf) to force system update and ignore errors"
|
||||
exit
|
||||
;;
|
||||
"")
|
||||
@@ -116,6 +117,17 @@ case "$1" in
|
||||
yum | dnf | zypper)
|
||||
$SO update;;
|
||||
esac;;
|
||||
*Uf)
|
||||
echo $(gettext "Force updating system")
|
||||
case "$SO" in
|
||||
apt)
|
||||
apt update && apt upgrade -f;;
|
||||
pacman)
|
||||
pacman -Syu $packages --force;;
|
||||
yum | dnf | zypper)
|
||||
echo "$(gettext "Not supported on your distribution. Doing -U instead")"
|
||||
$SO update;;
|
||||
esac;;
|
||||
*Uy)
|
||||
echo $updating
|
||||
case "$SO" in
|
||||
@@ -124,7 +136,7 @@ case "$1" in
|
||||
pacman)
|
||||
pacman -Syu $packages --noconfirm;;
|
||||
yum | dnf | zypper)
|
||||
echo "$(gettext "Not supported on your distribution. Use -U instead")"
|
||||
echo "$(gettext "Not supported on your distribution. Doing -U instead")"
|
||||
$SO update;;
|
||||
esac;;
|
||||
*I)
|
||||
@@ -147,7 +159,7 @@ case "$1" in
|
||||
pacman)
|
||||
pacman -Syu $packages --noconfirm --needed;;
|
||||
yum | dnf | zypper)
|
||||
echo "$(gettext "Not supported on your distribution. Use -I instead")"
|
||||
echo "$(gettext "Not supported on your distribution. Doing -I instead")"
|
||||
$SO install $packages;;
|
||||
esac;;
|
||||
*Ir)
|
||||
@@ -162,14 +174,14 @@ case "$1" in
|
||||
$SO reinstall $packages;;
|
||||
esac;;
|
||||
*Iry)
|
||||
echo "$(gettext "You are going to reinstall $packages")"
|
||||
printf -- "$(gettext "You are going to reinstall %s")" "$packages"
|
||||
case "$SO" in
|
||||
apt)
|
||||
apt update && apt -y install --reinstall $packages;;
|
||||
pacman)
|
||||
pacman -Syu $packages --noconfirm;;
|
||||
yum | dnf | zypper)
|
||||
echo "$(gettext "Not supported on your distribution. Use -Ir instead")"
|
||||
echo "$(gettext "Not supported on your distribution. Doing -Ir instead")"
|
||||
$SO reinstall $packages;;
|
||||
esac;;
|
||||
*R)
|
||||
@@ -190,7 +202,7 @@ case "$1" in
|
||||
pacman)
|
||||
pacman -R $packages --noconfirm;;
|
||||
yum | dnf | zypper)
|
||||
echo "$(gettext "Not supported on your distribution. Use -R instead")"
|
||||
echo "$(gettext "Not supported on your distribution. Doing -R instead")"
|
||||
$SO remove $packages;;
|
||||
esac;;
|
||||
*Rd)
|
||||
|
||||
@@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-06-07 13:27+0200\n"
|
||||
"POT-Creation-Date: 2016-06-07 15:38+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@@ -78,94 +78,102 @@ msgstr ""
|
||||
msgid "\tAppend y to -U or -I (-Uy -Iy -Iry) for autoconfirm the operations"
|
||||
msgstr ""
|
||||
|
||||
#: apw:38
|
||||
#: apw:35
|
||||
msgid "\tAppend f to -U (-Uf) to force system update and ignore errors"
|
||||
msgstr ""
|
||||
|
||||
#: apw:39
|
||||
msgid "apw - A Packager Wrapper"
|
||||
msgstr ""
|
||||
|
||||
#: apw:39 apw:263
|
||||
#: apw:40 apw:275
|
||||
msgid "Use apw -h for help"
|
||||
msgstr ""
|
||||
|
||||
#: apw:47
|
||||
#: apw:48
|
||||
msgid "apw has to run as root, please run as root/with sudo"
|
||||
msgstr ""
|
||||
|
||||
#: apw:52
|
||||
#: apw:53
|
||||
msgid "It's the first run of the program, we need a thing before continue"
|
||||
msgstr ""
|
||||
|
||||
#: apw:53
|
||||
#: apw:54
|
||||
msgid "What, or in what is based your Linux?"
|
||||
msgstr ""
|
||||
|
||||
#: apw:54
|
||||
#: apw:55
|
||||
msgid ""
|
||||
"(The answer will be recorded in /etc/apw.conf, if you want to reset apw, "
|
||||
"delete this file)"
|
||||
msgstr ""
|
||||
|
||||
#: apw:89
|
||||
#: apw:90
|
||||
msgid "No package specified, aborting"
|
||||
msgstr ""
|
||||
|
||||
#: apw:107
|
||||
#: apw:108
|
||||
msgid "Updating system"
|
||||
msgstr ""
|
||||
|
||||
#: apw:127
|
||||
msgid "Not supported on your distribution. Use -U instead"
|
||||
#: apw:121
|
||||
msgid "Force updating system"
|
||||
msgstr ""
|
||||
|
||||
#: apw:131 apw:142
|
||||
#: apw:128 apw:139
|
||||
msgid "Not supported on your distribution. Doing -U instead"
|
||||
msgstr ""
|
||||
|
||||
#: apw:143 apw:154
|
||||
msgid "You are going to install %s and dependencies"
|
||||
msgstr ""
|
||||
|
||||
#: apw:150
|
||||
msgid "Not supported on your distribution. Use -I instead"
|
||||
#: apw:162
|
||||
msgid "Not supported on your distribution. Doing -I instead"
|
||||
msgstr ""
|
||||
|
||||
#: apw:154
|
||||
#: apw:166 apw:177
|
||||
msgid "You are going to reinstall %s"
|
||||
msgstr ""
|
||||
|
||||
#: apw:172
|
||||
msgid "Not supported on your distribution. Use -Ir instead"
|
||||
#: apw:184
|
||||
msgid "Not supported on your distribution. Doing -Ir instead"
|
||||
msgstr ""
|
||||
|
||||
#: apw:176 apw:186
|
||||
#: apw:188 apw:198
|
||||
msgid "You are going to remove %s"
|
||||
msgstr ""
|
||||
|
||||
#: apw:193
|
||||
msgid "Not supported on your distribution. Use -R instead"
|
||||
#: apw:205
|
||||
msgid "Not supported on your distribution. Doing -R instead"
|
||||
msgstr ""
|
||||
|
||||
#: apw:197 apw:206
|
||||
#: apw:209 apw:218
|
||||
msgid "Removing %s along with his dependencies that are not more in use"
|
||||
msgstr ""
|
||||
|
||||
#: apw:203 apw:212 apw:229 apw:239
|
||||
#: apw:215 apw:224 apw:241 apw:251
|
||||
msgid "Not supported on your distribution"
|
||||
msgstr ""
|
||||
|
||||
#: apw:215
|
||||
#: apw:227
|
||||
msgid "Cleaning package manager"
|
||||
msgstr ""
|
||||
|
||||
#: apw:232
|
||||
#: apw:244
|
||||
msgid ""
|
||||
"Cleaning system from dependencies that are not in use (BE CAREFUL, ONLY "
|
||||
"ADVANCED)"
|
||||
msgstr ""
|
||||
|
||||
#: apw:242
|
||||
#: apw:254
|
||||
msgid "Searching %s"
|
||||
msgstr ""
|
||||
|
||||
#: apw:251
|
||||
#: apw:263
|
||||
msgid "Installing files: %s"
|
||||
msgstr ""
|
||||
|
||||
#: apw:262
|
||||
#: apw:274
|
||||
msgid "Invalid option especified"
|
||||
msgstr ""
|
||||
|
||||
Binary file not shown.
@@ -88,29 +88,33 @@ msgstr ""
|
||||
msgid "\tAppend y to -U or -I (-Uy -Iy -Iry) for autoconfirm the operations"
|
||||
msgstr "\tAñadir y a -U o -I (-Uy -Iy -Iry) para autoconfirmar la operación"
|
||||
|
||||
#: apw:38
|
||||
#: apw:35
|
||||
msgid "\tAppend f to -U (-Uf) to force system update and ignore errors"
|
||||
msgstr "\tAñadir f to -U (-Uf) para forzar la actualización del sistema e ignorar los errores"
|
||||
|
||||
#: apw:39
|
||||
msgid "apw - A Packager Wrapper"
|
||||
msgstr "apw - A Package Wrapper"
|
||||
|
||||
#: apw:39 apw:263
|
||||
#: apw:40 apw:275
|
||||
msgid "Use apw -h for help"
|
||||
msgstr "Usa apw -h para ver la ayuda"
|
||||
|
||||
#: apw:47
|
||||
#: apw:48
|
||||
msgid "apw has to run as root, please run as root/with sudo"
|
||||
msgstr "apw tiene que ejecutarse como root, por favor usalo como root/sudo"
|
||||
|
||||
#: apw:52
|
||||
#: apw:53
|
||||
msgid "It's the first run of the program, we need a thing before continue"
|
||||
msgstr ""
|
||||
"Esta es la primera ejecución del programa, necesitamos algo antes de "
|
||||
"continuar"
|
||||
|
||||
#: apw:53
|
||||
#: apw:54
|
||||
msgid "What, or in what is based your Linux?"
|
||||
msgstr "¿Qué o en qué está basado tu distribución Linux?"
|
||||
|
||||
#: apw:54
|
||||
#: apw:55
|
||||
msgid ""
|
||||
"(The answer will be recorded in /etc/apw.conf, if you want to reset apw, "
|
||||
"delete this file)"
|
||||
@@ -118,55 +122,59 @@ msgstr ""
|
||||
"(La respuesta será guardada en /etc/apw.conf, si quieres resetear apw borra "
|
||||
"el fichero)"
|
||||
|
||||
#: apw:89
|
||||
#: apw:90
|
||||
msgid "No package specified, aborting"
|
||||
msgstr "Ningún paquete especificado, cerrando"
|
||||
|
||||
#: apw:107
|
||||
#: apw:108
|
||||
msgid "Updating system"
|
||||
msgstr "Actualizando el sistema"
|
||||
|
||||
#: apw:127
|
||||
msgid "Not supported on your distribution. Use -U instead"
|
||||
msgstr "No soportado en tu distribución. Usa -U en su lugar"
|
||||
#: apw:121
|
||||
msgid "Force updating system"
|
||||
msgstr "Forzando la actualización del sistema"
|
||||
|
||||
#: apw:131 apw:142
|
||||
#: apw:128 apw:139
|
||||
msgid "Not supported on your distribution. Doing -U instead"
|
||||
msgstr "No soportado en tu distribución. Usando -U en su lugar"
|
||||
|
||||
#: apw:143 apw:154
|
||||
msgid "You are going to install %s and dependencies"
|
||||
msgstr "Vas a instalar %s y sus dependencias"
|
||||
|
||||
#: apw:150
|
||||
msgid "Not supported on your distribution. Use -I instead"
|
||||
msgstr "No soportado en tu distribución. Usa -I en su lugar"
|
||||
#: apw:162
|
||||
msgid "Not supported on your distribution. Doing -I instead"
|
||||
msgstr "No soportado en tu distribución. Usando -I en su lugar"
|
||||
|
||||
#: apw:154
|
||||
#: apw:166 apw:177
|
||||
msgid "You are going to reinstall %s"
|
||||
msgstr "Vas a reinstalar %s"
|
||||
|
||||
#: apw:172
|
||||
msgid "Not supported on your distribution. Use -Ir instead"
|
||||
msgstr "No soportado en tu distribución. Usa -Ir en su lugar"
|
||||
#: apw:184
|
||||
msgid "Not supported on your distribution. Doing -Ir instead"
|
||||
msgstr "No soportado en tu distribución. Usando -Ir en su lugar"
|
||||
|
||||
#: apw:176 apw:186
|
||||
#: apw:188 apw:198
|
||||
msgid "You are going to remove %s"
|
||||
msgstr "Vas a borrar %s"
|
||||
|
||||
#: apw:193
|
||||
msgid "Not supported on your distribution. Use -R instead"
|
||||
msgstr "No soportado en tu distribución. Usa -R en su lugar"
|
||||
#: apw:205
|
||||
msgid "Not supported on your distribution. Doing -R instead"
|
||||
msgstr "No soportado en tu distribución. Usando -R en su lugar"
|
||||
|
||||
#: apw:197 apw:206
|
||||
#: apw:209 apw:218
|
||||
msgid "Removing %s along with his dependencies that are not more in use"
|
||||
msgstr "Quitando %s junto con las dependencias que no están más en uso"
|
||||
|
||||
#: apw:203 apw:212 apw:229 apw:239
|
||||
#: apw:215 apw:224 apw:241 apw:251
|
||||
msgid "Not supported on your distribution"
|
||||
msgstr "No soportado en tu distribución"
|
||||
|
||||
#: apw:215
|
||||
#: apw:227
|
||||
msgid "Cleaning package manager"
|
||||
msgstr "Limpiar gestor de paquetes"
|
||||
msgstr "Limpiando gestor de paquetes"
|
||||
|
||||
#: apw:232
|
||||
#: apw:244
|
||||
msgid ""
|
||||
"Cleaning system from dependencies that are not in use (BE CAREFUL, ONLY "
|
||||
"ADVANCED)"
|
||||
@@ -174,14 +182,14 @@ msgstr ""
|
||||
"Limpiar el sistema de dependencias que no están en uso (CUIDADO, SOLO "
|
||||
"EXPERIMENTADOS)"
|
||||
|
||||
#: apw:242
|
||||
#: apw:254
|
||||
msgid "Searching %s"
|
||||
msgstr "Buscando %s"
|
||||
|
||||
#: apw:251
|
||||
#: apw:263
|
||||
msgid "Installing files: %s"
|
||||
msgstr "Instalando archivos: %s"
|
||||
|
||||
#: apw:262
|
||||
#: apw:274
|
||||
msgid "Invalid option especified"
|
||||
msgstr "Opción inválida seleccionada"
|
||||
|
||||
Reference in New Issue
Block a user