Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
altlinux-packages-bot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Unitsaev
altlinux-packages-bot
Commits
19fece2d
Verified
Commit
19fece2d
authored
Mar 09, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appstream: parallelize branch info requests
parent
41f6a541
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
update_appstream_data.py
src/services/appstream/update_appstream_data.py
+12
-6
No files found.
src/services/appstream/update_appstream_data.py
View file @
19fece2d
import
asyncio
from
telegrinder.modules
import
logger
from
altrepo
import
altrepo
BRANCHES
=
[
"sisyphus"
,
"p11"
]
async
def
update_appstream_data
():
for
branch
in
[
"sisyphus"
,
"p11"
]:
results
=
await
asyncio
.
gather
(
*
(
altrepo
.
api
.
package
.
package_info
(
"appstream-data-desktop"
,
branch
=
branch
,
source
=
True
)
for
branch
in
BRANCHES
))
package
=
(
await
altrepo
.
api
.
package
.
package_info
(
"appstream-data-desktop"
,
branch
=
branch
,
source
=
True
)
)
.
packages
[
0
]
for
branch
,
result
in
zip
(
BRANCHES
,
results
):
package
=
result
.
packages
[
0
]
current_version
=
altrepo
.
appstream
.
data
.
get_current_version
(
branch
)
package_version
=
f
"{package.version}-{package.release}"
if
(
...
...
Write
Preview
Markdown
is supported
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