[paketler-commits] r55774 - devel/applications/hardware/alsa-utils/files
paketler-commits at pardus.org.tr
paketler-commits at pardus.org.tr
12 Kas 2008 Çar 15:21:58 EET
Author: ozan.caglayan
Date: Wed Nov 12 15:21:58 2008
New Revision: 55774
Modified:
devel/applications/hardware/alsa-utils/files/alsa-info.sh
Log:
Disable auto-update function of alsa-info.sh
Modified: devel/applications/hardware/alsa-utils/files/alsa-info.sh
=================================================================
--- devel/applications/hardware/alsa-utils/files/alsa-info.sh (original)
+++ devel/applications/hardware/alsa-utils/files/alsa-info.sh Wed Nov 12 15:21:58 2008
@@ -40,53 +40,6 @@
fi
}
-update() {
- wget -O /tmp/alsa-info.sh "http://www.alsa-project.org/alsa-info.sh" >/dev/null 2>&1
- REMOTE_VERSION=`grep SCRIPT_VERSION /tmp/alsa-info.sh |head -n1 |sed 's/.*=//'`
- if [ "$REMOTE_VERSION" != "$SCRIPT_VERSION" ]; then
- if [[ -n $DIALOG ]]
- then
- if [ -w $0 ]; then
- dialog --yesno "Newer version of ALSA-Info has been found\n\nDo you wish to install it?" 0 0
- else
- dialog --yesno "Newer version of ALSA-Info has been found\n\nDo you wish to download it?" 0 0
- fi
- DIALOG_EXIT_CODE=$?
- if [[ $DIALOG_EXIT_CODE = 0 ]]
- then
- echo "Newer version detected: $REMOTE_VERSION"
- echo "To view the ChangeLog, please visit $CHANGELOG"
- if [ -w $0 ]; then
- cp /tmp/alsa-info.sh $0
- echo "ALSA-Info script has been updated to v $REMOTE_VERSION"
- echo "Please re-run the script"
- rm /tmp/alsa-info.sh 2>/dev/null
- else
- echo "ALSA-Info script has been downloaded as /tmp/alsa-info.sh."
- echo "Please re-run the script from new location."
- fi
- exit
- else
- rm /tmp/alsa-info.sh 2>/dev/null
- fi
- else
- echo "Newer version detected: $REMOTE_VERSION"
- echo "To view the ChangeLog, please visit $CHANGELOG"
- if [ -w $0 ]; then
- cp /tmp/alsa-info.sh $0
- echo "ALSA-Info script has been updated. Please re-run it."
- rm /tmp/alsa-info.sh 2>/dev/null
- else
- echo "ALSA-Info script has been downloaded as /tmp/alsa-info.sh."
- echo "Please, re-run it from new location."
- fi
- exit
- fi
- else
- rm /tmp/alsa-info.sh 2>/dev/null
- fi
-}
-
cleanup() {
rm -r $TEMPDIR 2>/dev/null
}
@@ -218,7 +171,7 @@
while [ -z "$REPEAT" ]; do
REPEAT="no"
case "$1" in
- --update|--help|--about)
+ --help|--about)
QUESTION="no"
PROCEED="no"
;;
@@ -435,7 +388,6 @@
#If no command line options are specified, then run as though --with-all was specified
if [[ -z "$1" ]]
then
- update
withdevices
withconfigs
withaplay
@@ -454,7 +406,6 @@
do
case "$1" in
--pastebin)
- update
withdevices
withconfigs
withaplay
@@ -463,10 +414,6 @@
withlsmod
pbcheck
;;
- --update)
- update
- exit
- ;;
--no-upload)
NOUPLOAD="yes"
KEEP_FILES="yes"
@@ -543,7 +490,6 @@
echo " crimsun - Various script ideas / Testing"
echo " gnubien - Various script ideas / Testing"
echo " GrueMaster - HDA Intel specific items / Testing"
- echo " olegfink - Script update function"
cleanup
exit 0
;;
@@ -558,7 +504,6 @@
echo " /etc/asound.conf if they exist)"
echo " --with-devices (shows the device nodes in /dev/snd/)"
echo ""
- echo " --update (check server for script updates)"
echo " --no-upload (do not upload contents to remote server)"
echo " --pastebin (use http://pastebin.ca) as remote server"
echo " instead www.alsa-project.org"
Paketler-commits mesaj listesiyle ilgili
daha fazla bilgi