~ubuntu-branches/ubuntu/oneiric/kdegames/oneiric

« back to all changes in this revision

Viewing changes to kajongg/src/sound.py

  • Committer: Bazaar Package Importer
  • Author(s): Harald Sitter
  • Date: 2010-08-30 17:31:41 UTC
  • mfrom: (1.2.51 upstream)
  • Revision ID: james.westby@ubuntu.com-20100830173141-ihk05djixkuse2kn
Tags: 4:4.5.1-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
                    tarFile.add(os.path.join(sourceDir, oggFile), arcname=oggFile)
139
139
                tarFile.close()
140
140
            os.symlink(sourceDir, self.archiveDirectory())
 
141
        else:
 
142
            # we have a directory containing the correct fingerprint.
 
143
            # now make sure the directory MD5... exists. If not,
 
144
            # make it a symlink pointing to the source directory.
 
145
            md5Directory = os.path.join(Voice.voicesDirectory, newDir)
 
146
            if not os.path.exists(md5Directory):
 
147
                os.symlink(os.path.split(sourceDir)[1], md5Directory)
 
148
 
141
149
 
142
150
    def archiveDirectory(self, name=None):
143
151
        """the full path of the archive directory"""