Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
c2bbac9e
Commit
c2bbac9e
authored
Jul 14, 2012
by
Clément Schreiner
Browse files
Wtf happened to the indentation here...
parent
70d1cc4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/lib/repository.py
View file @
c2bbac9e
...
...
@@ -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
):
"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment