ALT Linux Bugzilla
– Attachment 8751 Details for
Bug 38416
[FR] дополнить alsa-info.sh сводкой информации по установленным пакетам alsa
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
alsa-info: initial rpm/deb package info
0002-alsa-info-initial-rpm-deb-package-info.patch (text/plain), 2.34 KB, created by
Michael Shigorin
on 2020-05-01 11:17:25 MSK
(
hide
)
Description:
alsa-info: initial rpm/deb package info
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2020-05-01 11:17:25 MSK
Size:
2.34 KB
patch
obsolete
>From 8cf31b884be7b554e6ac2d7c82057be5892283d3 Mon Sep 17 00:00:00 2001 >From: Michael Shigorin <mike@altlinux.org> >Date: Fri, 1 May 2020 10:52:42 +0300 >Subject: [PATCH 2/2] alsa-info: initial rpm/deb package info > >This might become a Pandora's box given >the amount of obscure package managers >on the planet but these two account for >most *nix-like systems with ALSA it seems. > >Added support for querying ALSA packages >installed through rpm and dpkg; tested >on ALT (rpm) and OS Elbrus (dpkg). > >Suggested-by: Anton Farygin <rider@altlinux.org> >See-also: http://bugzilla.altlinux.org/38416 >--- > alsa-info/alsa-info.sh | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > >diff --git a/alsa-info/alsa-info.sh b/alsa-info/alsa-info.sh >index 2265cae..1bf0421 100755 >--- a/alsa-info/alsa-info.sh >+++ b/alsa-info/alsa-info.sh >@@ -238,6 +238,23 @@ withdmesg() { > echo "" >> $FILE > } > >+withpackages() { >+ local RPM="$(which rpmquery 2>/dev/null | sed 's|^[^/]*||' 2>/dev/null)" >+ local DPKG="$(which dpkg 2>/dev/null | sed 's|^[^/]*||' 2>/dev/null)" >+ [ -n "$RPM$DPKG" ] || return >+ local PATTERN='(alsa-(lib|oss|plugins|tools|(topology|ucm)-conf|utils)|libalsa|tinycompress)' >+ { >+ echo "!!Packages installed" >+ echo "!!--------------------" >+ echo "" >+ { >+ if [ -x "$RPM" ]; then "$RPM" -a; fi >+ if [ -x "$DPKG" ]; then "$DPKG" -l; fi >+ } | grep -E "$PATTERN" >+ echo "" >+ } >> "$FILE" >+} >+ > withall() { > withdevices > withconfigs >@@ -247,6 +264,7 @@ withall() { > withmodules > withsysfs > withdmesg >+ withpackages > WITHALL="no" > } > >@@ -357,6 +375,7 @@ information about your ALSA installation and sound related hardware. > aplay > amixer > alsactl >+ rpm, dpkg > /proc/asound/ > /sys/class/sound/ > ~/.asoundrc (etc.) >@@ -699,6 +718,10 @@ if [ -n "$1" ]; then > withconfigs > WITHALL="no" > ;; >+ --with-packages) >+ withpackages >+ WITHALL="no" >+ ;; > --stdout) > UPLOAD="no" > if [ -z "$WITHALL" ]; then >@@ -730,6 +753,7 @@ if [ -n "$1" ]; then > echo " /etc/asound.conf if they exist)" > echo " --with-devices (shows the device nodes in /dev/snd/)" > echo " --with-dmesg (shows the ALSA/HDA kernel messages)" >+ echo " --with-packages (includes known packages installed)" > echo "" > echo " --output FILE (specify the file to output for no-upload mode)" > echo " --update (check server for script updates)" >-- >2.25.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 38416
: 8751