← Back to team overview

desktop-packages team mailing list archive

[Bug 1266496] Re: extra "fi" in file

 

** Changed in: gdm (Ubuntu)
    Milestone: ubuntu-14.04 => None

** Tags added: bitesize saucy trusty

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gdm in Ubuntu.
https://bugs.launchpad.net/bugs/1266496

Title:
  extra "fi" in file

Status in gdm package in Ubuntu:
  Triaged

Bug description:
  In file /etc/init.d/gdm, line 79, there is an extra "fi" without any
  matching "if" inside function gen_config():

  gen_config() {
    # GSettings configuration uses dconf update to generate a gdm profile
    needed=no
    if [ ! -f /etc/dconf/db/gdm ]; then
        needed=yes
    else
        for f in \
            /etc/dconf/db/gdm.d /etc/dconf/db/gdm.d/*-settings \
            /etc/dconf/db/gdm.d/locks /etc/dconf/db/gdm.d/locks/*-locks \
            /etc/gdm/greeter.gsettings; do
            if [ "$f" -nt /etc/dconf/db/gdm ]; then
                needed=yes
                break
            fi
        done
    fi
    if [ "$needed" = yes ]; then
        # The configuration file in /etc uses org.gnome.blah gsettings syntax.
        # Convert it to org/gnome/blah dconf syntax, if needed (newer)
        dist_settings=/etc/dconf/db/gdm.d/90-debian-settings
        if [ ! -f $dist_settings ] || \
            [ /etc/gdm/greeter.gsettings -nt $dist_settings ] ; then
            awk '/\[.*\]/ { gsub("\\.","/"); } ! /^#/ { print;}' \
                /etc/gdm/greeter.gsettings > $dist_settings
        fi
        echo "Updating dconf for gdm..."
        dconf update
      fi
    fi
  }

  Second-last "fi" doesn't match any "if".

  This error is present in gdm source package 3.8.4-0ubuntu2

  My version of Ubuntu:
  Description:    Ubuntu 13.10
  Release:        13.10

  My version of gdm:
  gdm:
    Installed: 3.8.4-0ubuntu2
    Candidate: 3.8.4-0ubuntu2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/1266496/+subscriptions