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
5e53553f
Commit
5e53553f
authored
Oct 13, 2015
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-site: use functions from epm-print
parent
a9e9d320
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
24 deletions
+3
-24
epm-site
bin/epm-site
+3
-24
No files found.
bin/epm-site
View file @
5e53553f
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
#
#
load_helper epm-query
load_helper epm-query
load_helper epm-print
run_command_if_exists
()
run_command_if_exists
()
{
{
...
@@ -38,28 +39,6 @@ open_browser()
...
@@ -38,28 +39,6 @@ open_browser()
done
done
}
}
# FIXME: Copied from etersoft-build-utils
# Query variables from rpm package
querypackage
()
{
local
FORMAT
=
"%{
$2
}"
local
INSTALLED
=
"-p"
# if name empty, use third param as format string
[
-n
"
$2
"
]
||
FORMAT
=
"
$3
"
# if not file, drop -p for get from rpm base
[
-e
"
$1
"
]
||
INSTALLED
=
""
rpmquery
$INSTALLED
--queryformat
"
$FORMAT
"
$1
}
# FIXME: Copied from etersoft-build-utils
# return source package name by binary rpm package file
get_sourcepkg_name
()
{
local
FILE
=
"
$1
"
local
PKGVERSION
=
$(
querypackage
"
$FILE
"
VERSION
)
querypackage
"
$FILE
"
sourcerpm |
sed
-e
"s|-
$PKGVERSION
.*||g"
}
__query_package_hl_url
()
__query_package_hl_url
()
{
{
case
$DISTRNAME
in
case
$DISTRNAME
in
...
@@ -79,7 +58,7 @@ query_package_url()
...
@@ -79,7 +58,7 @@ query_package_url()
case
$PMTYPE
in
case
$PMTYPE
in
*
-rpm
)
*
-rpm
)
query
package
"
$1
"
URL
||
__query_package_hl_url
"
$1
"
query
_package_field URL
"
$1
"
||
__query_package_hl_url
"
$1
"
#LANG=C epm info "$1"
#LANG=C epm info "$1"
return
return
;;
;;
...
@@ -114,7 +93,7 @@ query_altlinux_url()
...
@@ -114,7 +93,7 @@ query_altlinux_url()
local
URL
local
URL
case
$PMTYPE
in
case
$PMTYPE
in
*
-rpm
)
*
-rpm
)
local
srpm
=
$(
get_sourcepkg_
name
"
$1
"
)
local
srpm
=
$(
print_src
name
"
$1
"
)
[
-n
"
$srpm
"
]
||
fatal
"Can't get source name for
$1
"
[
-n
"
$srpm
"
]
||
fatal
"Can't get source name for
$1
"
echo
"
$(
get_pao_url
)
/
$srpm
"
echo
"
$(
get_pao_url
)
/
$srpm
"
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