~apport-hackers/apport/trunk

« back to all changes in this revision

Viewing changes to backends/packaging-apt-dpkg.py

  • Committer: Martin Pitt
  • Date: 2010-09-12 20:36:36 UTC
  • mfrom: (1785.1.2 apport)
  • Revision ID: martin.pitt@canonical.com-20100912203636-3eybxcyy4pwu14tx
packaging-apt-dpkg.py: Fix handling of /etc/apport/native-origins.d to actually work. Thanks Steve Langasek. (LP: #627777)

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
        native_origins = [this_os]
132
132
        try:
133
133
            for f in os.listdir('/etc/apport/native-origins.d'):
134
 
                for line in open(f):
 
134
                for line in open(os.path.join('/etc/apport/native-origins.d', f)):
135
135
                    line = line.strip()
136
136
                    if line:
137
137
                        native_origins.append(line)