Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce the -n/--news option that allows to display latest Arch News #113

Merged
merged 3 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README-fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ Sélectionnez la news à lire en tapant le numéro associé.
Après avoir lu une news, `arch-update` vous proposera à nouveau d'afficher les dernières Arch news, afin que vous puissiez lire plusieurs news à la fois.
Appuyez simplement sur « Entrée » sans saisir de chiffre pour procéder à la mise à jour :

*Les Arch news peuvent être affichées à tout moment en exécutant la commande `arch-update --news`*
*Le listing/affichage des Arch news peut être ignoré avec l'option `NoNews` dans le fichier de configuration `arch-update.conf`.*
*Notez que l'utilisation de cette option générera un message d'avertissement pour rappeler que les utilisateurs sont censés consulter régulièrement les Arch news.*
*Voir le [chapitre de documentation arch-update.conf](#Fichier-de-configuration-arch-update) pour plus de détails.*
Expand Down Expand Up @@ -168,7 +169,8 @@ de fichiers pacnew/pacsave et de mise à jour du noyau en attente et, s'il y en

Options :
-c, --check Vérifier les mises à jour disponibles, envoyer une notification de bureau contenant le nombre de mises à jour disponibles (si libnotify est installé)
-h, --help Afficher ce message et quitter
-n, --news Afficher les dernières Arch News
-h, --help Afficher ce message d'aide et quitter
-V, --version Afficher les informations de version et quitter

Codes de sortie :
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Select which news to read by typing its associated number.
After your read a news, `arch-update` will once again offers to display latest Arch Linux news, so you can read multiple news at once.
Simply press "enter" without typing any number to proceed with update:

*Arch news can be displayed at any time by running the `arch-update --news` command.*
*The Arch news listing/displaying can be skipped with the `NoNews` option in the `arch-update.conf` configuration file.*
*Note that using this option will generate a warning message as a reminder that users are expected to regularly check Arch news.*
*See the [arch-update.conf documentation chapter](#arch-update-configuration-file) for more details.*
Expand Down Expand Up @@ -166,7 +167,8 @@ and pending kernel update and, if there are, offers to process them.

Options:
-c, --check Check for available updates, send a desktop notification containing the number of available updates (if libnotify is installed)
-h, --help Display this message and exit
-n, --news Display latest Arch News
-h, --help Display this help message and exit
-V, --version Display version information and exit

Exit Codes:
Expand Down
6 changes: 5 additions & 1 deletion doc/man/arch-update.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "ARCH-UPDATE" "1" "January 2024" "Arch-Update 1.11.0" "Arch-Update Manual"
.TH "ARCH-UPDATE" "1" "February 2024" "Arch-Update 1.11.0" "Arch-Update Manual"

.SH NAME
arch-update \- An update notifier/applier for Arch Linux that assists you with important pre/post update tasks.
Expand Down Expand Up @@ -38,6 +38,10 @@ An update notifier/applier for Arch Linux that assists you with important pre/po
.br
.B systemctl \-\-user enable \-\-now arch-update.timer

.TP
.B \-n, \-\-news
Display latest Arch news.

.TP
.B \-v, \-\-version
Display version information.
Expand Down
6 changes: 5 additions & 1 deletion doc/man/fr/arch-update.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "ARCH-UPDATE" "1" "Janvier 2024" "Arch-Update 1.11.0" "Manuel de Arch-Update"
.TH "ARCH-UPDATE" "1" "Février 2024" "Arch-Update 1.11.0" "Manuel de Arch-Update"

.SH NAME
arch-update \- Un notificateur/applicateur de mises à jour pour Arch Linux qui vous assiste dans les tâches importantes d'avant/après mise à jour.
Expand Down Expand Up @@ -38,6 +38,10 @@ Un notificateur/applicateur de mises à jour pour Arch Linux qui vous assiste da
.br
.B systemctl \-\-user enable \-\-now arch-update.timer

.TP
.B \-n, \-\-news
Afficher les dernières Arch news.

.TP
.B \-v, \-\-version
Afficher les informations de version.
Expand Down
115 changes: 60 additions & 55 deletions po/arch-update.pot
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ msgstr ""

#: src/script/arch-update.sh:135
#, sh-format
msgid " -h, --help Display this message and exit"
msgid " -h, --help Display this help message and exit"
msgstr ""

#: src/script/arch-update.sh:136
Expand Down Expand Up @@ -141,16 +141,16 @@ msgstr ""
msgid "Proceed with update? [Y/n]"
msgstr ""

#: src/script/arch-update.sh:266 src/script/arch-update.sh:388
#: src/script/arch-update.sh:421 src/script/arch-update.sh:463
#: src/script/arch-update.sh:530 src/script/arch-update.sh:560
#: src/script/arch-update.sh:266 src/script/arch-update.sh:396
#: src/script/arch-update.sh:429 src/script/arch-update.sh:471
#: src/script/arch-update.sh:538 src/script/arch-update.sh:568
#, sh-format
msgid "Y"
msgstr ""

#: src/script/arch-update.sh:266 src/script/arch-update.sh:388
#: src/script/arch-update.sh:421 src/script/arch-update.sh:463
#: src/script/arch-update.sh:530 src/script/arch-update.sh:560
#: src/script/arch-update.sh:266 src/script/arch-update.sh:396
#: src/script/arch-update.sh:429 src/script/arch-update.sh:471
#: src/script/arch-update.sh:538 src/script/arch-update.sh:568
#, sh-format
msgid "y"
msgstr ""
Expand All @@ -170,241 +170,246 @@ msgstr ""
msgid "[NEW]"
msgstr ""

#: src/script/arch-update.sh:301
#: src/script/arch-update.sh:304
#, sh-format
msgid "Select the news to read (or just press \"enter\" to quit):"
msgstr ""

#: src/script/arch-update.sh:307
#, sh-format
msgid ""
"Select the news to read (or just press \"enter\" to proceed with update):"
msgstr ""

#: src/script/arch-update.sh:312
#: src/script/arch-update.sh:320
#, sh-format
msgid "Title:"
msgstr ""

#: src/script/arch-update.sh:313
#: src/script/arch-update.sh:321
#, sh-format
msgid "Author:"
msgstr ""

#: src/script/arch-update.sh:314
#: src/script/arch-update.sh:322
#, sh-format
msgid "Publication date:"
msgstr ""

#: src/script/arch-update.sh:315
#: src/script/arch-update.sh:323
#, sh-format
msgid "URL:"
msgstr ""

#: src/script/arch-update.sh:331
#: src/script/arch-update.sh:339
#, sh-format
msgid "Updating Packages...\\n"
msgstr ""

#: src/script/arch-update.sh:336 src/script/arch-update.sh:348
#: src/script/arch-update.sh:359
#: src/script/arch-update.sh:344 src/script/arch-update.sh:356
#: src/script/arch-update.sh:367
#, sh-format
msgid ""
"An error has occurred during the update process\\nThe update has been "
"aborted\\n"
msgstr ""

#: src/script/arch-update.sh:343
#: src/script/arch-update.sh:351
#, sh-format
msgid "Updating AUR Packages...\\n"
msgstr ""

#: src/script/arch-update.sh:355
#: src/script/arch-update.sh:363
#, sh-format
msgid "Updating Flatpak Packages...\\n"
msgstr ""

#: src/script/arch-update.sh:366
#: src/script/arch-update.sh:374
#, sh-format
msgid "The update has been applied\\n"
msgstr ""

#: src/script/arch-update.sh:378
#: src/script/arch-update.sh:386
#, sh-format
msgid "Orphan Packages:"
msgstr ""

#: src/script/arch-update.sh:382
#: src/script/arch-update.sh:390
#, sh-format
msgid ""
"Would you like to remove this orphan package (and its potential "
"dependencies) now? [y/N]"
msgstr ""

#: src/script/arch-update.sh:384
#: src/script/arch-update.sh:392
#, sh-format
msgid ""
"Would you like to remove these orphan packages (and their potential "
"dependencies) now? [y/N]"
msgstr ""

#: src/script/arch-update.sh:390
#: src/script/arch-update.sh:398
#, sh-format
msgid "Removing Orphan Packages...\\n"
msgstr ""

#: src/script/arch-update.sh:394 src/script/arch-update.sh:427
#: src/script/arch-update.sh:470 src/script/arch-update.sh:480
#: src/script/arch-update.sh:490 src/script/arch-update.sh:499
#: src/script/arch-update.sh:402 src/script/arch-update.sh:435
#: src/script/arch-update.sh:478 src/script/arch-update.sh:488
#: src/script/arch-update.sh:498 src/script/arch-update.sh:507
#, sh-format
msgid ""
"An error has occurred during the removal process\\nThe removal has been "
"aborted\\n"
msgstr ""

#: src/script/arch-update.sh:397 src/script/arch-update.sh:430
#: src/script/arch-update.sh:405 src/script/arch-update.sh:438
#, sh-format
msgid "The removal has been applied\\n"
msgstr ""

#: src/script/arch-update.sh:402 src/script/arch-update.sh:434
#: src/script/arch-update.sh:507
#: src/script/arch-update.sh:410 src/script/arch-update.sh:442
#: src/script/arch-update.sh:515
#, sh-format
msgid "The removal hasn't been applied\\n"
msgstr ""

#: src/script/arch-update.sh:406
#: src/script/arch-update.sh:414
#, sh-format
msgid "No orphan package found\\n"
msgstr ""

#: src/script/arch-update.sh:411
#: src/script/arch-update.sh:419
#, sh-format
msgid "Flatpak Unused Packages:"
msgstr ""

#: src/script/arch-update.sh:415
#: src/script/arch-update.sh:423
#, sh-format
msgid "Would you like to remove this Flatpak unused package now? [y/N]"
msgstr ""

#: src/script/arch-update.sh:417
#: src/script/arch-update.sh:425
#, sh-format
msgid "Would you like to remove these Flatpak unused packages now? [y/N]"
msgstr ""

#: src/script/arch-update.sh:423
#: src/script/arch-update.sh:431
#, sh-format
msgid "Removing Flatpak Unused Packages..."
msgstr ""

#: src/script/arch-update.sh:438
#: src/script/arch-update.sh:446
#, sh-format
msgid "No Flatpak unused package found\\n"
msgstr ""

#: src/script/arch-update.sh:455
#: src/script/arch-update.sh:463
#, sh-format
msgid "Cached Packages:\\nThere's an old or uninstalled cached package\\n"
msgstr ""

#: src/script/arch-update.sh:456
#: src/script/arch-update.sh:464
#, sh-format
msgid "Would you like to remove it from the cache now? [Y/n]"
msgstr ""

#: src/script/arch-update.sh:458
#: src/script/arch-update.sh:466
#, sh-format
msgid "Cached Packages:\\nThere are old and/or uninstalled cached packages\\n"
msgstr ""

#: src/script/arch-update.sh:459
#: src/script/arch-update.sh:467
#, sh-format
msgid "Would you like to remove them from the cache now? [Y/n]"
msgstr ""

#: src/script/arch-update.sh:466 src/script/arch-update.sh:486
#: src/script/arch-update.sh:474 src/script/arch-update.sh:494
#, sh-format
msgid "Removing old cached packages..."
msgstr ""

#: src/script/arch-update.sh:476 src/script/arch-update.sh:495
#: src/script/arch-update.sh:484 src/script/arch-update.sh:503
#, sh-format
msgid "Removing uninstalled cached packages..."
msgstr ""

#: src/script/arch-update.sh:511
#: src/script/arch-update.sh:519
#, sh-format
msgid "No old or uninstalled cached package found\\n"
msgstr ""

#: src/script/arch-update.sh:520
#: src/script/arch-update.sh:528
#, sh-format
msgid "Pacnew Files:"
msgstr ""

#: src/script/arch-update.sh:524
#: src/script/arch-update.sh:532
#, sh-format
msgid "Would you like to process this file now? [Y/n]"
msgstr ""

#: src/script/arch-update.sh:526
#: src/script/arch-update.sh:534
#, sh-format
msgid "Would you like to process these files now? [Y/n]"
msgstr ""

#: src/script/arch-update.sh:532
#: src/script/arch-update.sh:540
#, sh-format
msgid "Processing Pacnew Files...\\n"
msgstr ""

#: src/script/arch-update.sh:536
#: src/script/arch-update.sh:544
#, sh-format
msgid "The pacnew file(s) processing has been applied\\n"
msgstr ""

#: src/script/arch-update.sh:539
#: src/script/arch-update.sh:547
#, sh-format
msgid "The pacnew file(s) processing hasn't been applied\\n"
msgstr ""

#: src/script/arch-update.sh:543
#: src/script/arch-update.sh:551
#, sh-format
msgid "No pacnew file found\\n"
msgstr ""

#: src/script/arch-update.sh:556
#: src/script/arch-update.sh:564
#, sh-format
msgid ""
"Reboot required:\\nThere's a pending kernel update on your system requiring "
"a reboot to be applied\\n"
msgstr ""

#: src/script/arch-update.sh:557
#: src/script/arch-update.sh:565
#, sh-format
msgid "Would you like to reboot now? [y/N]"
msgstr ""

#: src/script/arch-update.sh:562
#: src/script/arch-update.sh:570
#, sh-format
msgid "Rebooting in 5 seconds...\\nPress ctrl+c to abort"
msgstr ""

#: src/script/arch-update.sh:566
#: src/script/arch-update.sh:574
#, sh-format
msgid ""
"An error has occurred during the reboot process\\nThe reboot has been "
"aborted\\n"
msgstr ""

#: src/script/arch-update.sh:574
#: src/script/arch-update.sh:582
#, sh-format
msgid ""
"The reboot hasn't been performed\\nPlease, consider rebooting to finalize "
"the pending kernel update\\n"
msgstr ""

#: src/script/arch-update.sh:578
#: src/script/arch-update.sh:586
#, sh-format
msgid "No pending kernel update found\\n"
msgstr ""

#: src/script/arch-update.sh:591
#: src/script/arch-update.sh:599
#, sh-format
msgid ""
"NoNews option detected\\nPlease, keep in mind that users are expected to "
Expand Down
Loading