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
1bec252b
Commit
1bec252b
authored
May 02, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repo addkey: allow missed url with gpg key
parent
c670a664
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
epm-repo-addkey
bin/epm-repo-addkey
+14
-5
No files found.
bin/epm-repo-addkey
View file @
1bec252b
...
...
@@ -43,10 +43,18 @@ __epm_addkey_altlinux()
shift
fi
local
fingerprint
=
"
$1
"
local
comment
=
"
$2
"
local
fingerprint
if
is_url
"
$url
"
;
then
fingerprint
=
"
$1
"
shift
else
fingerprint
=
"
$url
"
url
=
""
fi
local
comment
=
"
$1
"
# compat
[
-n
"
$
3
"
]
&&
name
=
"
$3
"
[
-n
"
$
2
"
]
&&
name
=
"
$2
"
[
-s
/etc/apt/vendors.list.d/
$name
.list
]
&&
return
...
...
@@ -57,9 +65,10 @@ simple-key "$name" {
Name "
$comment
";
}
EOF
if
[
-n
"
$url
"
]
;
then
local
tmpfile
=
$(
__epm_get_file_from_url
$url
)
||
fatal
sudocmd gpg
--no-default-keyring
--keyring
/usr/lib/alt-gpgkeys/pubring.gpg
--import
$tmpfile
fi
}
...
...
@@ -165,7 +174,7 @@ epm_addkey()
{
if
[
"
$1
"
=
"-h"
]
||
[
"
$1
"
=
"--help"
]
||
[
-z
"
$1
"
]
;
then
echo
"Usage:
$
epm repo addkey [name]
url
[fingerprint/gpgkey] [comment/name]"
echo
"Usage:
$
epm repo addkey [name]
[url]
[fingerprint/gpgkey] [comment/name]"
return
fi
...
...
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