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
f161005b
Commit
f161005b
authored
Apr 30, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repo addkey: fix download key
parent
5917d078
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
epm-repo-addkey
bin/epm-repo-addkey
+7
-2
No files found.
bin/epm-repo-addkey
View file @
f161005b
...
@@ -23,9 +23,10 @@ load_helper epm-sh-altlinux
...
@@ -23,9 +23,10 @@ load_helper epm-sh-altlinux
# allowed files too
# allowed files too
__epm_get_file_from_url
()
__epm_get_file_from_url
()
{
{
local
url
=
"
$1
"
local
tmpfile
=
$(
mktemp
)
local
tmpfile
=
$(
mktemp
)
remove_on_exit
$tmpfile
remove_on_exit
"
$tmpfile
"
eget
-O
$tmpfile
$url
>
/dev/null
eget
-O
"
$tmpfile
"
"
$url
"
>
/dev/null
echo
"
$tmpfile
"
echo
"
$tmpfile
"
}
}
...
@@ -138,6 +139,7 @@ __epm_addkey_deb()
...
@@ -138,6 +139,7 @@ __epm_addkey_deb()
# compat
# compat
[
-n
"
$3
"
]
&&
name
=
"
$3
"
[
-n
"
$3
"
]
&&
name
=
"
$3
"
# FIXME: check by GPG PUBKEY
[
-s
/etc/apt/trusted.gpg.d/
$name
.gpg
]
&&
return
[
-s
/etc/apt/trusted.gpg.d/
$name
.gpg
]
&&
return
if
[
-z
"
$fingerprint
"
]
;
then
if
[
-z
"
$fingerprint
"
]
;
then
...
@@ -167,6 +169,9 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ -z "$1" ] ; then
...
@@ -167,6 +169,9 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ -z "$1" ] ; then
return
return
fi
fi
# initialize here
remove_on_exit
case
$BASEDISTRNAME
in
case
$BASEDISTRNAME
in
"alt"
)
"alt"
)
__epm_addkey_altlinux
"
$@
"
__epm_addkey_altlinux
"
$@
"
...
...
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