Commit c2bbac9e authored by Clément Schreiner's avatar Clément Schreiner
Browse files

Wtf happened to the indentation here...

parent 70d1cc4f
......@@ -259,16 +259,16 @@ class Repository(object):
return '\n'.join(entries)
def get_bin_package(self, name, arch):
"""
Returns the binary package matching `name` as a dictionary.
None if not found.
"""
filename = os.path.join(self.repository, 'dists', 'unstable', 'main', 'binary-%s/Packages.bz2' % arch)
with bz2.BZ2File(filename) as packages_file:
for p in deb822.Packages.iter_paragraphs(packages_file):
if p['Package'] == name:
return p
"""
Returns the binary package matching `name` as a dictionary.
None if not found.
"""
filename = os.path.join(self.repository, 'dists', 'unstable', 'main', 'binary-%s/Packages.bz2' % arch)
with bz2.BZ2File(filename) as packages_file:
for p in deb822.Packages.iter_paragraphs(packages_file):
if p['Package'] == name:
return p
def _get_archs_list(self, list):
"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment