~ken-vandine/ubuntu/precise/folks/precise

« back to all changes in this revision

Viewing changes to tools/import.vala

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-06-10 11:28:11 UTC
  • mfrom: (1.2.11 upstream) (4.2.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20110610112811-whyeodbo9mjezxfp
Tags: 0.5.2-1ubuntu1
* Merge with Debian experimental, remaining Ubuntu changes:
  - debian/control:
    + Add Vcs-Bzr link

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
        }
130
130
 
131
131
      /* Get its only PersonaStore */
132
 
      PersonaStore destination_store;
133
 
      GLib.List<unowned PersonaStore> stores =
134
 
          kf_backend.persona_stores.get_values ();
 
132
      PersonaStore destination_store = null;
 
133
      var stores = kf_backend.persona_stores.values;
135
134
 
136
 
      if (stores == null)
 
135
      if (stores.size == 0)
137
136
        {
138
137
          stderr.printf (
139
138
              _("Couldn't load the 'key-file' backend's persona store.\n"));
142
141
 
143
142
      try
144
143
        {
145
 
          destination_store = stores.data;
 
144
          /* Get the first persona store */
 
145
          foreach (var persona_store in stores)
 
146
            {
 
147
              destination_store = persona_store;
 
148
              break;
 
149
            }
 
150
 
146
151
          yield destination_store.prepare ();
147
152
        }
148
153
      catch (GLib.Error e3)