Author Topic: whats new on repos  (Read 900 times)

0 Members and 1 Guest are viewing this topic.

Offline papajoke

  • Vollwertiges Mitglied
  • ***
  • Posts: 135
  • from www.manjaro.fr
  • Branch: stable/testing
  • Desktop: KDE4 and 5 - zsh
  • GPU driver: video-nouveau free
  • Kernel: x64
  • Skill: Intermediate
whats new on repos
« on: 28. January 2016, 13:54:55 »
a little script for view new packages after an update

run packages-news.sh before and after an update(sync) for list news

file : packages-news.sh
Code: [Select]
#!/usr/bin/env bash
pkgname='packages-news'
version=0.1.2

ORIGIN="${pkgname}.pre-update"
NEW="/tmp/${pkgname}.post-update"
DIFF="/tmp/${pkgname}.diff"

## internationalize {{{
declare -A _DICO
_txt() {
 local param="$1"
 shift
 [[ -n "${_DICO[$param]}" ]] && param="${_DICO[$param]}"
 printf "$param" "$@"
}
lg=$(locale 2>/dev/null | awk -F'=' '/^LANG/ {print $2}')   
# [ -r "${pkgname}.${lg:0:2}" ] && . "${pkgname}.${lg:0:2}"
if [[ "${lg:0:2}" == 'fr' ]]; then   
    declare -Ar _DICO=(
        ['load before update, store file: %s']='Executer avant mise à joue, garder le fichier: %s'
        ['load after update for view new packages']='re-executer après mise à jour pour afficher les nouveaux paquets'
        ['packages file storage: %s']='fichier des paquets disponibles: %s'
        ['reload this script after update']='relancer ce script après mise à jour'
        ['yes, i love you %s for ever']='oui, je vous aime %s pour toujours'
        ['file list stored %s']='liste courante créée %s'
        ['you can erase file list: %s and reload for create new file before next update']='vous pouvez effacer %s et en regénérer un nouveau des maintenant pour la prochaine mise à jour'
        ['new packages']=' nouveaux paquets'
    )
fi
#########################

if [[ "$1" == '-h' ]]; then
    echo "$(_txt 'load before update, store file: %s' "$(pwd)/${ORIGIN}")"
    echo "$(_txt 'load after update for view new packages')"
    exit
fi

if [ ! -r "${ORIGIN}" ]; then
    pacman -Ssq > "${ORIGIN}"
    echo "$(_txt 'packages file storage: %s' "$(pwd)/${ORIGIN}")"
    echo "$(_txt 'reload this script after update')"
else
    pacman -Ssq > "${NEW}"
    echo "$(_txt 'file list stored %s' ${NEW})"
    echo "------ $(_txt 'compare') ------"
    diff "${ORIGIN}" "${NEW}" --suppress-common-lines | grep "^>" | cut -c3- > "${DIFF}"
    echo "$(wc -l "${DIFF}") $(_txt 'new packages')"
    echo
    while read line; do
        [ -n "${line} " ] && LANG=C pacman -Si ${line} | awk -F':' '/^Desc/ {print "'${line}': " $2}'
    done < "${DIFF}"
    rm "${DIFF}"
    rm "${NEW}"
    echo
    echo "$(_txt 'you can erase file list: %s and reload for create new file before next update' ${ORIGIN})"
    echo " "   
fi

for exemple, before/after update stable 2016-01-13, i had with my kde4 stable :

Quote
artikulate:  Improve your pronunciation by listening to native speakers
gnutls28:  A library which provides a secure layer over a reliable transport layer (legacy version)
kamera:  KDE integration for gphoto2 cameras
klickety:  An adaptation of the Clickomania game
knavalbattle:  A ship sinking game
krfb:  Desktop Sharing
ksystemlog:  System log viewer tool
ktuberling:  A simple constructor game suitable for children and adults alike
kuiserver:  KDE Progress Info UI server
manjaro-backgrounds:  Manjaro Linux backgrounds
manjaro-base-skel:  Manjaro Linux base skeleton files
manjaro-bspwm-settings:  Manjaro Linux bspwm settings
manjaro-budgie-minimal-settings:  Manjaro Linux budgie-minimal settings
manjaro-budgie-settings:  Manjaro Linux budgie settings
manjaro-cinnamon-settings:  Manjaro Linux cinnamon settings
manjaro-deepin-settings:  Manjaro Linux deepin settings
manjaro-enlightenment-settings:  Manjaro Linux enlightenment settings
manjaro-firefox-settings:  Manjaro Linux firefox settings
manjaro-fluxbox-settings:  Manjaro Linux fluxbox settings
manjaro-gnome-settings:  Manjaro Linux gnome settings
manjaro-i3-settings:  Manjaro Linux i3 settings
manjaro-icons:  Manjaro Linux logo icons
manjaro-iso-profiles-minimal:  Manjaro Linux minimal iso profiles
manjaro-isolinux:  Development tools for Manjaro Linux (isolinux)
manjaro-jwm-settings:  Manjaro Linux jwm settings
manjaro-kde-minimal-settings:  Manjaro Linux kde-minimal settings
manjaro-kde-settings:  Manjaro Linux kde settings
manjaro-live-skel:  Manjaro Linux live skeleton files
manjaro-lxde-settings:  Manjaro Linux lxde settings
manjaro-lxqt-minimal-settings:  Manjaro Linux lxqt-minimal settings
manjaro-lxqt-settings:  Manjaro Linux lxqt settings
manjaro-mate-settings:  Manjaro Linux mate settings
manjaro-netbook-settings:  Manjaro Linux netbook settings
manjaro-pantheon-settings:  Manjaro Linux pantheon settings
manjaro-xfce-minimal-settings:  Manjaro Linux xfce-minimal settings
manjaro-xfce-settings:  Manjaro Linux xfce settings
partitionmanager:  A KDE utility that allows you to manage disks, partitions, and file systems. (GIT version)
plasma-ssh-agent:  KDE Plasma Workspace ssh-agent
poxml:  Translates DocBook XML files using gettext po files
signond:  A D-Bus service which performs user authentication on behalf of its clients
sonar-backgrounds:  Sonar Linux backgrounds
sonar-calamares-branding:  Sonar Linux calamares branding
sonar-gnome-settings:  Sonar Linux gnome settings
sonar-iso-profiles:  Sonar Linux iso profiles
sonar-isolinux:  Development tools for Sonar Linux (isolinux)
sonar-mate-settings:  Sonar Linux mate settings
spectacle:  KDE screenshot capture utility
ttf-croscore:  Chrome OS core fonts
abiword-gtk2:  Fully-featured word processor, GTk2, No plugins, Lite version
arc-themes:  A flat theme with transparent elements (GNOME 3.18 version)
arj:  Free and portable clone of the ARJ archiver
artwork-fluxbox:  Wallpapers and avatars for manjaro-fluxbox
artwork-i3:  Wallpapers and avatars for manjaro-i3
awoken-icon-theme-light:  Coloured AwOken icon set for GNOME/XFCE/LXDE
binwalk:  A tool for searching a given binary image for embedded files
breeze-snow-cursor-theme:  Breeze Snow cursor theme.
bspwm-wallpapers:  Wallpapers for bspwm
btfs:  A bittorrent filesystem based on FUSE
deepin-desktop-base:  Default wallpapers and other base component for Deepin
deepin-gir-generator:  Generate static golang bindings for GObject
deepin-iconthemes-manjaro:  Icon themes for Deepin-Manjaro
deepin-system-monitor:  A fork of mate-system-monitor for Deepin
enjarify:  Translates Dalvik bytecode to equivalent Java bytecode
firefox-gtk2:  Standalone web browser from mozilla.org (GTK2 version)
fwknop:  FireWall KNock OPerator
git-annex:  Manage files with git, without checking their contents into git
haxe:  Cross-platform toolkit and programming language
lhasa:  Free LZH/LHA archive tool
maia-wallpaper:  Maia wallpaper
masalla-icon-theme:  A flat design icon theme by Hayder Majid
neko:  High-level dynamically typed programming language
numix-themes-archblue:  A flat and light theme with a modern look using Arch Linux colors (GNOME, Openbox, Unity, Xfce)
pandoc-citeproc:  Supports using pandoc with citeproc
pandoc-crossref:  Pandoc filter for cross-references
pelican:  A tool to generate a static blog, with restructured text (or markdown) input files.
php-mongodb:  MongoDB driver for PHP
plasma-maliit-plugins:  Plasma Integration for Maliit virtual keyboard
pulseaudio-openrc:  OpenRC pulseaudio init script
qtox:  Powerful Tox client written in C++/Qt that follows the Tox design guidelines
qutebrowser:  A keyboard-driven, vim-like browser based on PyQt5 and QtWebKit
retext:  A simple editor for Markdown and ReStructuredText markup languages
snort-openrc:  OpenRC snort init script
srandrd:  Simple randr daemon that reacts to monitor hotplug events
stack:  The Haskell Tool Stack
tarantool:  Lua application server integrated with a database management system
toxic:  CLI Tox client
trash-cli:  Command line trashcan (recycle bin) interface
unbound-openrc:  OpenRC unbound init script
uncrustify:  A source code beautifier
vagrant-substrate:  Substrate layer for Vagrant
bluedevil4:  KDE bluetooth framework
libbluedevil:  A Qt4 wrapper for bluez used in the new KDE bluetooth stack
libqalculate:  Multi-purpose desktop calculator
signon-qt4:  Qt4 Framework to provide credential storage and authentication service
« Last Edit: 28. January 2016, 15:03:15 by papajoke »

Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
Re: whats new on repos
« Reply #1 on: 28. January 2016, 14:01:01 »
Interesting, I will try.  :)
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)