~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to data/hooks.py

  • Committer: Michael Vogt
  • Date: 2008-11-10 18:04:02 UTC
  • Revision ID: michael.vogt@ubuntu.com-20081110180402-lvolg0ct1xr4vqoi
* debian/update-notifier-common.install:
  - move apt-check, apt-cdrom-check and cdromdistupgrade
    into update-notifier-common

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
    def _readSeenFile(self):
44
44
        """ read the users config file that stores what hook files are
45
 
            already seen
46
 
        """
47
 
        data_home = os.getenv("XDG_CONFIG_HOME", os.path.join(user.home, '.config'))
48
 
        hooks_seen = os.path.join(data_home, 'update-notifier', 'hooks_seen')
 
45
            already seen """
 
46
        hooks_seen = user.home+"/.update-notifier/hooks_seen"
49
47
        if os.path.exists(hooks_seen):
50
48
            for line in open(hooks_seen):
51
49
                filename, mtime, cmd_run = string.split(line)