~xubuntu-dev/ubiquity/lp1437180_feh

« back to all changes in this revision

Viewing changes to scripts/plugininstall.py

  • Committer: Colin Watson
  • Date: 2014-04-09 21:34:01 UTC
  • Revision ID: cjwatson@canonical.com-20140409213401-1jb17y0efxdhy0mh
Remove lots of cruft relating to removed Ubuntu One, webcam, and
migration-assistant steps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
        self.configure_apt()
203
203
 
204
204
        self.configure_plugins()
205
 
        self.configure_face()
206
205
 
207
206
        self.next_region()
208
207
        self.run_target_config_hooks()
327
326
            return (None, None)
328
327
        return uid, gid
329
328
 
330
 
    def configure_face(self):
331
 
        PHOTO_PATH = '/var/lib/ubiquity/webcam_photo.png'
332
 
        target_user = self.db.get('passwd/username')
333
 
        uid, gid = self._get_uid_gid_on_target(target_user)
334
 
        if os.path.exists(PHOTO_PATH) and uid and gid:
335
 
            targetpath = self.target_file('home', target_user, '.face')
336
 
            shutil.copy2(PHOTO_PATH, targetpath)
337
 
            os.lchown(targetpath, uid, gid)
338
 
 
339
329
    def configure_python(self):
340
330
        """Byte-compile Python modules.
341
331