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 <[email protected]> --- debian/openvswitch-switch.init | 22 +++++++++++----------- debian/openvswitch-switch.postinst | 28 ++++++++++++++-------------- 2 files changed, 25 insertions(+), 25 deletions(-) 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) -- 2.21.0 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
