~ubuntu-branches/ubuntu/utopic/lazygal/utopic

« back to all changes in this revision

Viewing changes to lazygal/make.py

  • Committer: Package Import Robot
  • Author(s): Michal Čihař
  • Date: 2012-05-14 10:26:46 UTC
  • mfrom: (1.2.10)
  • Revision ID: package-import@ubuntu.com-20120514102646-a8aqsadph5u2s2sf
Tags: 0.7.2-1
* New upstream release.
  - Fix video thumbnailing handling (Closes: #662118).
  - Fixes French translation (Closes: #664167).
* Clean generated files in clean phase (Closes: #671317).
* Bump standards to 3.9.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
            self.stamp_delete()
209
209
 
210
210
    def clean_output(self):
211
 
        os.unlink(self._path)
 
211
        if os.path.lexists(self._path):
 
212
            os.unlink(self._path)
212
213
 
213
214
    def __repr__(self):
214
215
        return '%s(%s)' % (self.__class__.__name__, self._path.encode('utf-8'))
256
257
        self.add_file_dependency(self.src)
257
258
 
258
259
    def build(self):
259
 
        if os.access(self.dst, os.F_OK):
 
260
        if os.path.islink(self.dst):
260
261
            os.remove(self.dst)
261
262
        os.symlink(self.src, self.dst)
262
263