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
Nurlan
eepm
Commits
710d8025
Commit
710d8025
authored
Feb 25, 2016
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-site: use https for packages.altlinux.org
parent
c310597d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
epm-site
bin/epm-site
+9
-6
No files found.
bin/epm-site
View file @
710d8025
#!/bin/sh
#
# Copyright (C) 2015 Etersoft
# Copyright (C) 2015 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2015
,2016
Etersoft
# Copyright (C) 2015
,2016
Vitaly Lipatov <lav@etersoft.ru>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
...
...
@@ -20,6 +20,8 @@
load_helper epm-query
load_helper epm-print
PAOURL
=
"https://packages.altlinux.org"
run_command_if_exists
()
{
local
CMD
=
"
$1
"
...
...
@@ -41,12 +43,13 @@ open_browser()
__query_package_hl_url
()
{
local
PAOAPI
=
"
$PAOURL
/api"
case
$DISTRNAME
in
ALTLinux
)
# http://petstore.swagger.io/?url=http://packages.altlinux.org/api/docs
epm assure curl
||
return
1
showcmd curl
"
http://packages.altlinux.org/api
/srpms/
$1
"
curl
-s
--header
"Accept: application/json"
"
http://packages.altlinux.org/api
/srpms/
$1
"
|
grep
'"url"'
|
sed
-e
's|.*"url":"||g'
|
sed
-e
's|".*||g'
showcmd curl
"
$PAOAPI
/srpms/
$1
"
curl
-s
--header
"Accept: application/json"
"
$PAOAPI
/srpms/
$1
"
|
grep
'"url"'
|
sed
-e
's|.*"url":"||g'
|
sed
-e
's|".*||g'
return
0
;;
esac
...
...
@@ -87,7 +90,7 @@ get_pao_url()
*
)
loc
=
en
esac
echo
"
http://packages.altlinux.org
/
$loc
/Sisyphus/srpms"
echo
"
$PAOURL
/
$loc
/Sisyphus/srpms"
}
query_altlinux_url
()
...
...
@@ -109,7 +112,7 @@ epm_site()
[
-n
"
$pkg_filenames
"
]
||
fatal
"Info: missing package(s) name"
PAO
=
local
PAO
=
""
for
f
in
$pkg_names
$pkg_files
;
do
[
"
$f
"
=
"-p"
]
&&
PAO
=
"
$f
"
&&
continue
if
[
-n
"
$PAO
"
]
;
then
...
...
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