Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37518093
en ru br
ALT Linux repositórios
S:3.1.2-alt1

Group :: Rede/Outros
RPM: openvswitch

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: openvswitch-2.0_alt_fix_function.patch
Download


--- utilities/ovs-lib.in.origin	2013-12-24 13:43:45.000000000 +0200
+++ utilities/ovs-lib.in	2013-12-24 13:47:04.689017686 +0200
@@ -83,24 +83,22 @@ elif test -e /lib/lsb/init-functions; th
     . /lib/lsb/init-functions
 fi
 
-# Implement missing functions (e.g. OpenSUSE lacks 'action').
-if type log_success_msg >/dev/null 2>&1; then :; else
-    log_success_msg () {
-        printf '%s.\n' "$*"
-    }
-fi
-if type log_failure_msg >/dev/null 2>&1; then :; else
-    log_failure_msg () {
-        printf '%s ... failed!\n' "$*"
-    }
-fi
-if type log_warning_msg >/dev/null 2>&1; then :; else
-    log_warning_msg () {
-        printf '%s ... (warning).\n' "$*"
-    }
-fi
-if type action >/dev/null 2>&1; then :; else
-    action () {
+log_success_msg () {
+        printf '%s' "$*"
+        echo_success
+        echo
+}
+log_failure_msg () {
+        printf '%s' "$*"
+        echo_failure
+        echo
+}
+log_warning_msg () {
+        printf '%s' "$*"
+        echo_passed
+        echo
+}
+action () {
        STRING=$1
        shift
        "$@"
@@ -111,8 +109,7 @@ if type action >/dev/null 2>&1; then :;
             log_failure_msg "$STRING"
        fi
        return $rc
-    }
-fi
+}
 
 ## ------- ##
 ## Daemons ##
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009