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
2aebb41e
Verified
Commit
2aebb41e
authored
Aug 19, 2025
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
package module: add skip list for appstream data
parent
707e9535
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
config.py
src/config.py
+7
-0
package.py
src/handlers/package.py
+9
-6
No files found.
src/config.py
View file @
2aebb41e
...
...
@@ -26,6 +26,13 @@ DEFAUIL_BRANCHES = [
"p10"
,
"p9"
]
APPSTREAM_SKIP_LIST
=
[
"-devel"
,
"-debuginfo"
,
"-gir"
,
"rpm-build"
,
"rpm-macros-"
]
BUGS_URL
=
"https://bugzilla.altlinux.org/"
PACKAGES_URL
=
"https://packages.altlinux.org/ru/{repo}/"
...
...
src/handlers/package.py
View file @
2aebb41e
...
...
@@ -11,6 +11,8 @@ from database.models import User
from
database.func
import
DB
from
services.utils
import
_bold
from
config
import
APPSTREAM_SKIP_LIST
dp
=
Dispatch
()
...
...
@@ -89,12 +91,13 @@ async def package_info_handler(
binary_packages_message
+=
f
" {binary_package.name}"
binary_packages_message
+=
f
" ({"
,
".join(binary_package.archs)})
\n
"
app_id
=
altrepo
.
appstream
.
package
.
id_by_pkgname
(
binary_package
.
name
,
branch
)
if
app_id
:
appstream_ids
.
append
(
app_id
)
appstream_names
.
append
(
binary_package
.
name
)
if
not
any
(
skip
in
binary_package
.
name
for
skip
in
APPSTREAM_SKIP_LIST
):
app_id
=
altrepo
.
appstream
.
package
.
id_by_pkgname
(
binary_package
.
name
,
branch
)
if
app_id
:
appstream_ids
.
append
(
app_id
)
appstream_names
.
append
(
binary_package
.
name
)
_package
=
DB
.
package
.
get
(
package
.
name
)
summary
=
(
...
...
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