Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
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
etersoft
eepm
Commits
0151ec85
Commit
0151ec85
authored
Jun 08, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repo index: add support for --sign [--default-key=NN] (fix issue 296)
parent
c2e6c50a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
6 deletions
+30
-6
epm-repoindex
bin/epm-repoindex
+30
-6
No files found.
bin/epm-repoindex
View file @
0151ec85
...
@@ -37,10 +37,34 @@ __epm_repoindex_alt()
...
@@ -37,10 +37,34 @@ __epm_repoindex_alt()
local
archlist
=
"i586 x86_64 x86_64-i586 aarch64 noarch"
local
archlist
=
"i586 x86_64 x86_64-i586 aarch64 noarch"
local
init
=
''
local
init
=
''
if
[
"
$1
"
=
"--init"
]
;
then
local
sign
=
''
init
=
'--init'
local
default_key
=
''
shift
fi
while
[
-n
"
$1
"
]
;
do
case
"
$1
"
in
--init
)
init
=
'--init'
;;
--sign
)
sign
=
'--sign'
;;
--default-key
=
*
)
default_key
=
"--default-key=
${
1
#*=
}
"
;;
--default-key
)
shift
[
-n
"
$1
"
]
||
fatal
"Missed value for --default-key"
default_key
=
"--default-key=
$1
"
;;
--
*
)
fatal
"Unknown option
$1
"
;;
*
)
break
;;
esac
shift
done
epm assure genbasedir apt-repo-tools
||
fatal
epm assure genbasedir apt-repo-tools
||
fatal
REPO_DIR
=
"
$1
"
REPO_DIR
=
"
$1
"
...
@@ -80,14 +104,14 @@ __epm_repoindex_alt()
...
@@ -80,14 +104,14 @@ __epm_repoindex_alt()
if
[
-d
"
$REPO_DIR
/RPMS.
$REPO_NAME
"
]
;
then
if
[
-d
"
$REPO_DIR
/RPMS.
$REPO_NAME
"
]
;
then
mkdir
-pv
"
$REPO_DIR
/base/"
mkdir
-pv
"
$REPO_DIR
/base/"
docmd genbasedir
--bloat
--progress
--topdir
=
$(
dirname
$REPO_DIR
)
$(
basename
$REPO_DIR
)
$REPO_NAME
docmd genbasedir
--bloat
--progress
$sign
$default_key
--topdir
=
$(
dirname
$REPO_DIR
)
$(
basename
$REPO_DIR
)
$REPO_NAME
return
return
fi
fi
for
arch
in
$archlist
;
do
for
arch
in
$archlist
;
do
[
-d
"
$REPO_DIR
/
$arch
/RPMS.
$REPO_NAME
"
]
||
continue
[
-d
"
$REPO_DIR
/
$arch
/RPMS.
$REPO_NAME
"
]
||
continue
mkdir
-pv
"
$REPO_DIR
/
$arch
/base/"
mkdir
-pv
"
$REPO_DIR
/
$arch
/base/"
docmd genbasedir
--bloat
--progress
--topdir
=
$REPO_DIR
$arch
$REPO_NAME
docmd genbasedir
--bloat
--progress
$sign
$default_key
--topdir
=
$REPO_DIR
$arch
$REPO_NAME
done
done
}
}
...
...
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