Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
Librem 5 Package Information Tool
Commits
4de929c5
Commit
4de929c5
authored
Feb 18, 2020
by
David Boddie
💬
Browse files
Allow for multiple versions of a package in different suites
parent
9e525f70
Pipeline
#52559
passed with stage
in 1 minute and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tools/dpkg-status-summary.py
View file @
4de929c5
...
...
@@ -418,19 +418,20 @@ class Worker:
for
source
in
deb822
.
Sources
.
iter_paragraphs
(
open
(
sources_file
)):
names
=
[
source
[
'Package'
]]
version
=
source
[
'Version'
]
names
+=
[
piece
.
strip
()
for
piece
in
source
[
'Binary'
].
split
(
','
)]
for
name
in
names
:
if
name
not
in
self
.
sources
:
self
.
sources
[
name
]
=
source
self
.
sources
[
(
name
,
version
)
]
=
source
i
+=
1
yield
(
suite_name
,
i
,
total
)
def
get_source_files
(
self
,
name
):
def
get_source_files
(
self
,
name
,
version
):
try
:
source
=
self
.
sources
[
name
]
source
=
self
.
sources
[
(
name
,
version
)
]
except
KeyError
:
return
None
...
...
@@ -714,7 +715,7 @@ class Worker:
output_text
+=
'</table>
\n
'
# Read source files.
info
=
self
.
get_source_files
(
name
)
info
=
self
.
get_source_files
(
name
,
version
)
if
info
:
output_text
+=
(
'<h2>Source Files</h2>
\n\n
'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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