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
8a4b5fbe
Commit
8a4b5fbe
authored
Aug 26, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-site: get url for noninstalled packages from packages.altlinux.org on ALT Linux
parent
e1219c4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
epm-site
bin/epm-site
+15
-1
No files found.
bin/epm-site
View file @
8a4b5fbe
...
@@ -60,12 +60,26 @@ get_sourcepkg_name()
...
@@ -60,12 +60,26 @@ get_sourcepkg_name()
querypackage
"
$FILE
"
sourcerpm |
sed
-e
"s|-
$PKGVERSION
.*||g"
querypackage
"
$FILE
"
sourcerpm |
sed
-e
"s|-
$PKGVERSION
.*||g"
}
}
__query_package_hl_url
()
{
case
$DISTRNAME
in
ALTLinux
)
# http://petstore.swagger.io/?url=http://packages.altlinux.org/api/docs
epm assure curl
||
return
1
curl
--header
"Accept: application/json"
"http://packages.altlinux.org/api/srpms/
$1
"
|
grep
'"url"'
|
sed
-e
's|.*"url":"||g'
|
sed
-e
's|".*||g'
return
0
;;
esac
return
1
}
query_package_url
()
query_package_url
()
{
{
local
URL
local
URL
case
$PMTYPE
in
case
$PMTYPE
in
*
-rpm
)
*
-rpm
)
querypackage
"
$1
"
URL
querypackage
"
$1
"
URL
||
__query_package_hl_url
"
$1
"
#LANG=C epm info "$1"
#LANG=C epm info "$1"
return
return
;;
;;
...
...
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