~package-import/ubuntu/lucid/apport/defunct

« back to all changes in this revision

Viewing changes to bin/package_hook

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-08-04 18:50:26 UTC
  • Revision ID: james.westby@ubuntu.com-20090804185026-yf6v4ua5qpbimlh1
Tags: 1.6-0ubuntu3
* Merge trunk:
  - apport-gtk: Fix ordering of choices
  - bin/package_hook: Fix crash for subdirectories in log dir. (LP: #332350)
  - doc/package-hooks.txt: Document allowed chars in report keys.
  - Show precise error message for damaged reports.
* ubuntu-bug: Call apport-kde instead of apport-qt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
    elif os.path.isdir(l):
53
53
        for f in os.listdir(l):
54
54
            path = os.path.join(l, f)
55
 
            pr[mkattrname(path)] = (path,)
 
55
            if os.path.isfile(path):
 
56
                pr[mkattrname(path)] = (path,)
56
57
 
57
58
# write report
58
59
pr.write(open(apport.fileutils.make_report_path(pr), 'w'))