~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/launchpad/utilities/gpghandler.py

  • Committer: Ian Booth
  • Date: 2011-05-09 14:31:50 UTC
  • mto: This revision was merged to the branch mainline in revision 13063.
  • Revision ID: ian.booth@canonical.com-20110509143150-aw3y0f98mqdwpql8
Move gpghandler job to poppy-sftp.tac

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
        """Create a new directory containing the required configuration.
73
73
 
74
74
        This method is called inside the class constructor and genereates
75
 
        a new directory (name ramdomly generated with the 'gpg-' prefix)
 
75
        a new directory (name randomly generated with the 'gpg-' prefix)
76
76
        containing the proper file configuration and options.
77
77
 
78
78
        Also installs an atexit handler to remove the directory on normal
118
118
            if os.path.exists(filename):
119
119
                os.remove(filename)
120
120
 
 
121
    def touchConfigurationDirectory(self):
 
122
        """See IGPGHandler."""
 
123
        os.utime(self.home, None)
 
124
        for file in os.listdir(self.home):
 
125
            try:
 
126
                os.utime(os.path.join(self.home, file), None)
 
127
            except OSError:
 
128
                # The file has been deleted.
 
129
                pass
 
130
 
121
131
    def verifySignature(self, content, signature=None):
122
132
        """See IGPGHandler."""
123
133
        try: