6 999
contributi
mNessun oggetto della modifica |
S3v (discussione | contributi) (1.0.70) |
||
Riga 68: | Riga 68: | ||
# ./scriptlog-debianizzati.org --tipo=apt --nocompress --nopaste | # ./scriptlog-debianizzati.org --tipo=apt --nocompress --nopaste | ||
# ./scriptlog-debianizzati.org --versione | # ./scriptlog-debianizzati.org --versione | ||
# ./scriptlog-debianizzati.org --help | |||
</pre> | </pre> | ||
Riga 134: | Riga 135: | ||
# Versione script | # Versione script | ||
readonly VERSIONE="1.0. | readonly VERSIONE="1.0.70" | ||
# Path e nome dello script | # Path e nome dello script | ||
Riga 140: | Riga 141: | ||
# Codename per oldstable, stable e testing. Da modificare nei successivi rilasci di Debian | # Codename per oldstable, stable e testing. Da modificare nei successivi rilasci di Debian | ||
readonly OLDOLDSTABLE="jessie" | |||
readonly OLDSTABLE="stretch" | readonly OLDSTABLE="stretch" | ||
readonly STABLE="buster" | readonly STABLE="buster" | ||
Riga 628: | Riga 630: | ||
function _sed_quote { | function _sed_quote { | ||
# array di caratteri da quotare | # array di caratteri da quotare | ||
quotearr=("." "/") | local quotearr=("." "/") | ||
retstr="$1" | local retstr="$1" | ||
for char in "${quotearr[@]}"; do | for char in "${quotearr[@]}"; do | ||
retstr="${retstr//$char/\\$char}" | retstr="${retstr//$char/\\$char}" | ||
Riga 1 357: | Riga 1 359: | ||
# controlla che sia un nome di release valido | # controlla che sia un nome di release valido | ||
if [ "$rel" = "oldstable" ] || [ "$rel" = "stable" ] || [ "$rel" = "testing" ] || [ "$rel" = "unstable" ] || | if [ "$rel" = "oldstable" ] || [ "$rel" = "stable" ] || [ "$rel" = "testing" ] || [ "$rel" = "unstable" ] || | ||
[ "$rel" = "$OLDSTABLE" ] || [ "$rel" = "$STABLE" ] || [ "$rel" = "$TESTING" ] || [ "$rel" = "sid" ]; then | [ "$rel" = "$OLDSTABLE" ] || [ "$rel" = "$STABLE" ] || [ "$rel" = "$TESTING" ] || [ "$rel" = "sid" ] || | ||
[ "$rel" = "oldoldstable" ] || [ "$rel" = "OLDOLDSTABLE" ]; then | |||
# controlla che sia un repository di Debian | # controlla che sia un repository di Debian | ||
Riga 1 400: | Riga 1 403: | ||
# Se il numero di release è uguale a 1, la variabile pkg conterrà i pacchetti *non* facenti parte della release | # Se il numero di release è uguale a 1, la variabile pkg conterrà i pacchetti *non* facenti parte della release | ||
case "$release" in | case "$release" in | ||
"$OLDOLDSTABLE"|oldstable) | |||
release="oldoldstable" | |||
pkg=$(aptitude -F '%p %v %t' search '~S ~i !~Aoldoldstable' --disable-columns | column -t) ;; | |||
"$OLDSTABLE"|oldstable) | "$OLDSTABLE"|oldstable) | ||
release="oldstable" | release="oldstable" | ||
pkg=$(aptitude -F '%p %v %t' search '~S ~i !~Aoldstable' --disable-columns | column -t) ;; | pkg=$(aptitude -F '%p %v %t' search '~S ~i !~Aoldstable' --disable-columns | column -t) ;; | ||
"$STABLE"|stable) | "$STABLE"|stable) | ||
release="stable" | release="stable" | ||
pkg=$(aptitude -F '%p %v %t' search '~S ~i !~Astable' | pkg=$(aptitude -F '%p %v %t' search '~S ~i !~Astable' --disable-columns | column -t) ;; | ||
"$TESTING"|testing) | "$TESTING"|testing) | ||
release="testing" | release="testing" | ||
pkg=$(aptitude -F '%p %v %t' search '~S ~i !~Atesting' | pkg=$(aptitude -F '%p %v %t' search '~S ~i !~Atesting' --disable-columns | column -t) ;; | ||
sid|unstable) | sid|unstable) | ||
release="unstable" | release="unstable" | ||
pkg=$(aptitude -F '%p %v %t' search '~S ~i !~Aunstable' | pkg=$(aptitude -F '%p %v %t' search '~S ~i !~Aunstable' --disable-columns | column -t) ;; | ||
esac | esac | ||
Riga 1 450: | Riga 1 456: | ||
== Changelog == | == Changelog == | ||
<!-- Qui vanno inserite le spiegazioni di eventuali modifiche dello script (chi, cosa, quando). Ricordarsi di modificare la versione (variabile VERSIONE) all'interno del codice (la versione iniziale è 1.0.0) --> | <!-- Qui vanno inserite le spiegazioni di eventuali modifiche dello script (chi, cosa, quando). Ricordarsi di modificare la versione (variabile VERSIONE) all'interno del codice (la versione iniziale è 1.0.0) --> | ||
;1.0.70 | |||
:''Aggiunta oldoldstable'' | |||
:''Modifiche minori'' | |||
:[[Utente:S3v|S3v]] ([[Discussioni utente:S3v|discussioni]]) 21:08, 15 mar 2021 (UTC) | |||
;1.0.69 | ;1.0.69 | ||
:''http->https per paste.debian.net'' | :''http->https per paste.debian.net'' |
contributi