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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
config.py
src/config.py
+7
-0
package.py
src/handlers/package.py
+3
-0
No files found.
src/config.py
View file @
2aebb41e
...
@@ -26,6 +26,13 @@ DEFAUIL_BRANCHES = [
...
@@ -26,6 +26,13 @@ DEFAUIL_BRANCHES = [
"p10"
,
"p10"
,
"p9"
"p9"
]
]
APPSTREAM_SKIP_LIST
=
[
"-devel"
,
"-debuginfo"
,
"-gir"
,
"rpm-build"
,
"rpm-macros-"
]
BUGS_URL
=
"https://bugzilla.altlinux.org/"
BUGS_URL
=
"https://bugzilla.altlinux.org/"
PACKAGES_URL
=
"https://packages.altlinux.org/ru/{repo}/"
PACKAGES_URL
=
"https://packages.altlinux.org/ru/{repo}/"
...
...
src/handlers/package.py
View file @
2aebb41e
...
@@ -11,6 +11,8 @@ from database.models import User
...
@@ -11,6 +11,8 @@ from database.models import User
from
database.func
import
DB
from
database.func
import
DB
from
services.utils
import
_bold
from
services.utils
import
_bold
from
config
import
APPSTREAM_SKIP_LIST
dp
=
Dispatch
()
dp
=
Dispatch
()
...
@@ -89,6 +91,7 @@ async def package_info_handler(
...
@@ -89,6 +91,7 @@ async def package_info_handler(
binary_packages_message
+=
f
" {binary_package.name}"
binary_packages_message
+=
f
" {binary_package.name}"
binary_packages_message
+=
f
" ({"
,
".join(binary_package.archs)})
\n
"
binary_packages_message
+=
f
" ({"
,
".join(binary_package.archs)})
\n
"
if
not
any
(
skip
in
binary_package
.
name
for
skip
in
APPSTREAM_SKIP_LIST
):
app_id
=
altrepo
.
appstream
.
package
.
id_by_pkgname
(
app_id
=
altrepo
.
appstream
.
package
.
id_by_pkgname
(
binary_package
.
name
,
branch
binary_package
.
name
,
branch
)
)
...
...
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