~mvo/+junk/lp-changelogs-crawler

« back to all changes in this revision

Viewing changes to lp-extract-changelogs.py

  • Committer: Michael Vogt
  • Date: 2011-07-06 16:13:31 UTC
  • Revision ID: michael.vogt@ubuntu.com-20110706161331-5r2yvwpqyzysck8r
lp-extract-changelogs.py: kill broken symlinks when unpacking

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
                src = "%s/debian/%s" % (unpackdir, f)
212
212
                if os.path.exists(src):
213
213
                    if not os.path.exists(dest):
 
214
                        # broken symlink, get rid of them
 
215
                        if os.path.islink(dest):
 
216
                            os.remove(dest)
214
217
                        os.makedirs(dest)
215
218
                    logging.debug("extracting '%s' to '%s'" % (src, dest))
216
219
                    shutil.copy(src, dest)