Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-builder
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
Жора Змейкин
ximper-builder
Commits
7bec43d4
Verified
Commit
7bec43d4
authored
Jul 17, 2026
by
Жора Змейкин
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gen-apt-conf: add repository selection and validation
Signed-off-by:
Жора Змейкин
<
katze@etersoft.ru
>
parent
84ff9835
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
gen-apt-conf
bin/gen-apt-conf
+11
-2
No files found.
bin/gen-apt-conf
View file @
7bec43d4
...
...
@@ -62,14 +62,22 @@ LOCAL_BASE="file:/var/ftp/pub"
# тип|путь относительно базы
declare
-A
REPO_DEFS
=(
[
sisyphus]
=
"classic|ALTLinux Sisyphus"
[
deferred]
=
"classic|Etersoft Sisyphus/Deferred"
[
deferred-beta]
=
"classic|Etersoft Sisyphus/Deferred_BETA"
[
deferred-devel]
=
"classic|Etersoft Sisyphus/Deferred_DEVEL"
[
ximper-additives]
=
"addon|Etersoft/XimperLinux/Current Additives"
[
ximper-additives-devel]
=
"addon|Etersoft/XimperLinux/Devel Additives"
[
ximper-substrates]
=
"addon|Etersoft/XimperLinux/Current Substrates"
[
ximper-substrates-devel]
=
"addon|Etersoft/XimperLinux/Devel Substrates"
)
check_hasher_repo
()
{
local
path
=
"/tmp/.private/
$USER
/hasher-sisyphus-64/repo/x86_64/RPMS.hasher"
[
-d
"
$path
"
]
||
print_error
"Локальный репозиторий 'hasher' не найден:
$path
"
}
add_repo
()
{
local type
=
$1
path
=
$2
repo_path
...
...
@@ -94,17 +102,18 @@ EOF
}
gen_sources
()
{
local
repo
local
repo
def
type
path
for
repo
in
$REPOS
;
do
if
[
"
$repo
"
==
"hasher"
]
;
then
check_hasher_repo
cat
<<
EOF
>> "
$SOURCES
"
rpm-dir file:/tmp/.private/
$USER
/hasher-sisyphus-64/ repo/x86_64 hasher
EOF
continue
fi
local
def
=
"
${
REPO_DEFS
[
$repo
]-
}
"
def
=
"
${
REPO_DEFS
[
$repo
]-
}
"
[
-n
"
$def
"
]
||
print_error
"Неизвестный репозиторий:
$repo
. Используйте -h для справки."
IFS
=
'|'
read
-r
type
path
<<<
"
$def
"
...
...
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