diff mbox series

[ovs-dev,1/1] debian: Fix tabs vs spaces.

Message ID 20240528083417.3340916-1-roid@nvidia.com
State Accepted
Commit 792e8ee869aa89b639a104879a9e31106b79c17f
Delegated to: Simon Horman
Headers show
Series [ovs-dev,1/1] debian: Fix tabs vs spaces. | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/intel-ovs-compilation success test: success

Commit Message

Roi Dayan May 28, 2024, 8:34 a.m. UTC
Getting the following message while trying to build a debian package.
debian/openvswitch-switch.init
debian/openvswitch-switch.postinst
See above for files that use tabs for indentation.
Please use spaces instead.
Fix it.

Signed-off-by: Roi Dayan <roid@nvidia.com>
---
 debian/openvswitch-switch.init     | 22 +++++++++++-----------
 debian/openvswitch-switch.postinst | 28 ++++++++++++++--------------
 2 files changed, 25 insertions(+), 25 deletions(-)

Comments

Simon Horman June 5, 2024, 12:59 p.m. UTC | #1
On Tue, May 28, 2024 at 11:34:17AM +0300, Roi Dayan via dev wrote:
> Getting the following message while trying to build a debian package.
> debian/openvswitch-switch.init
> debian/openvswitch-switch.postinst
> See above for files that use tabs for indentation.
> Please use spaces instead.
> Fix it.
> 
> Signed-off-by: Roi Dayan <roid@nvidia.com>

Acked-by: Simon Horman <horms@ovn.org>
Simon Horman June 6, 2024, 10:39 a.m. UTC | #2
On Tue, May 28, 2024 at 11:34:17AM +0300, Roi Dayan via dev wrote:
> Getting the following message while trying to build a debian package.
> debian/openvswitch-switch.init
> debian/openvswitch-switch.postinst
> See above for files that use tabs for indentation.
> Please use spaces instead.
> Fix it.
> 
> Signed-off-by: Roi Dayan <roid@nvidia.com>

Thanks, applied.

- debian: Fix tabs vs spaces.
  https://github.com/openvswitch/ovs/commit/792e8ee869aa
diff mbox series

Patch

diff --git a/debian/openvswitch-switch.init b/debian/openvswitch-switch.init
index 7b9fbf61e160..96fe1f7c4c61 100755
--- a/debian/openvswitch-switch.init
+++ b/debian/openvswitch-switch.init
@@ -47,21 +47,21 @@  load_kmod () {
 
 start () {
     if ovs_ctl load-kmod; then
-	:
+        :
     else
-	echo "Module has probably not been built for this kernel."
-	echo "Please install Linux 3.3 or later with openvswitch kernel support."
+        echo "Module has probably not been built for this kernel."
+        echo "Please install Linux 3.3 or later with openvswitch kernel support."
 
-	if test X"$OVS_MISSING_KMOD_OK" = Xyes; then
-	    # We're being invoked by the package postinst.  Do not
-	    # fail package installation just because the kernel module
-	    # is not available.
-	    exit 0
-	fi
+        if test X"$OVS_MISSING_KMOD_OK" = Xyes; then
+            # We're being invoked by the package postinst.  Do not
+            # fail package installation just because the kernel module
+            # is not available.
+            exit 0
+        fi
     fi
     set ovs_ctl ${1-start} --system-id=random
     if test X"$FORCE_COREFILES" != X; then
-	set "$@" --force-corefiles="$FORCE_COREFILES"
+        set "$@" --force-corefiles="$FORCE_COREFILES"
     fi
     set "$@" $OVS_CTL_OPTS
     "$@" || exit $?
@@ -113,7 +113,7 @@  restart () {
 case $1 in
     start)
         start
-	;;
+        ;;
     stop | force-stop)
         stop
         ;;
diff --git a/debian/openvswitch-switch.postinst b/debian/openvswitch-switch.postinst
index 042e671d5142..1a20a944ecc8 100755
--- a/debian/openvswitch-switch.postinst
+++ b/debian/openvswitch-switch.postinst
@@ -30,20 +30,20 @@  case "$1" in
             mv "${conffile}.dpkg-bak" "${conffile}"
         fi
 
-	# Ensure that /etc/openvswitch/conf.db links to /var/lib/openvswitch,
-	# moving an existing file if there is one.
-	#
-	# Ditto for .conf.db.~lock~.
-	for base in conf.db .conf.db.~lock~; do
-	    new=/var/lib/openvswitch/$base
-	    old=/etc/openvswitch/$base
-	    if test -f $old && test ! -e $new; then
-		mv $old $new
-	    fi
-	    if test ! -e $old && test ! -h $old; then
-		ln -s $new $old
-	    fi
-	done
+        # Ensure that /etc/openvswitch/conf.db links to /var/lib/openvswitch,
+        # moving an existing file if there is one.
+        #
+        # Ditto for .conf.db.~lock~.
+        for base in conf.db .conf.db.~lock~; do
+            new=/var/lib/openvswitch/$base
+            old=/etc/openvswitch/$base
+            if test -f $old && test ! -e $new; then
+                mv $old $new
+            fi
+            if test ! -e $old && test ! -h $old; then
+                ln -s $new $old
+            fi
+        done
         ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)