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
a1459142
Commit
a1459142
authored
Apr 24, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drop __epm_check_if_package_from_repo() in favour epm status --original
parent
93fb9999
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
31 deletions
+18
-31
epm-epm_install
bin/epm-epm_install
+1
-1
epm-sh-functions
bin/epm-sh-functions
+0
-27
epm-status
bin/epm-status
+16
-2
epm-update
bin/epm-update
+1
-1
No files found.
bin/epm-epm_install
View file @
a1459142
...
...
@@ -102,7 +102,7 @@ epm_epm_install()
{
if
[
"
$BASEDISTRNAME
"
=
"alt"
]
&&
[
"
$DISTRVERSION
"
!=
"Sisyphus"
]
&&
[
"
$EPMMODE
"
=
"package"
]
;
then
if
__epm_check_if_package_from_repo
eepm
;
then
if
epm status
--original
eepm
;
then
warning
"Using external (Korinf) repo is forbidden for stable ALT branch
$DISTRVERSION
."
info
"Check https://bugzilla.altlinux.org/44314 for reasons."
info
"You can install eepm package from Korinf manually, check instruction at https://eepm.ru"
...
...
bin/epm-sh-functions
View file @
a1459142
...
...
@@ -765,33 +765,6 @@ __epm_remove_tmp_files()
}
__epm_check_if_package_from_repo
()
{
local
pkg
=
"
$1
"
# only ALT
[
"
$BASEDISTRNAME
"
=
"alt"
]
||
return
0
local
vendor
# TODO: check only for rpm
#vendor="$(epm print field Vendor for "$pkg" 2>/dev/null))"
#[ "$vendor" = "ALT Linux Team" ] || return
local
distribution
distribution
=
"
$(
epm print field Distribution
for
"
$pkg
"
2>/dev/null
)
"
echo
"
$distribution
"
|
grep
-q
"^ALT"
||
return
local
sig
sig
=
"
$(
epm print field sigpgp
for
"
$pkg
"
2>/dev/null
)
"
[
"
$sig
"
=
"(none)"
]
&&
return
1
# FIXME: how to check if the package is from ALT repo (verified)?
local
release
=
"
$(
epm print release from package
"
$pkg
"
2>/dev/null
)
"
echo
"
$release
"
|
grep
-q
"^alt"
||
return
return
0
}
has_space
()
{
estrlist
--
has_space
"
$@
"
...
...
bin/epm-status
View file @
a1459142
...
...
@@ -36,9 +36,23 @@ epm_status_original()
case
$DISTRNAME
in
ALTLinux|ALTServer
)
epm_status_validate
$pkg
||
return
#[ "$(epm print field Vendor for package $pkg)" = "ALT Linux Team" ] && return
epm_status_repacked
$pkg
&&
return
1
__epm_check_if_package_from_repo
$pkg
&&
return
# not for all packages
#[ "$(epm print field Vendor for package $pkg)" = "ALT Linux Team" ] || return
local
distribution
distribution
=
"
$(
epm print field Distribution
for
"
$pkg
"
2>/dev/null
)
"
echo
"
$distribution
"
|
grep
-q
"^ALT"
||
return
local
sig
sig
=
"
$(
epm print field sigpgp
for
"
$pkg
"
2>/dev/null
)
"
[
"
$sig
"
=
"(none)"
]
&&
return
1
# FIXME: how to check if the package is from ALT repo (verified)?
local
release
=
"
$(
epm print release from package
"
$pkg
"
2>/dev/null
)
"
echo
"
$release
"
|
grep
-q
"^alt"
||
return
return
0
;;
*
)
fatal
"Unsupported
$DISTRNAME
"
...
...
bin/epm-update
View file @
a1459142
...
...
@@ -32,7 +32,7 @@ get_latest_version()
__check_for_epm_version
()
{
# skip update checking for eepm from repo (ALT bug #44314)
[
"
$BASEDISTRNAME
"
=
"alt"
]
&&
[
"
$DISTRVERSION
"
!=
"Sisyphus"
]
&&
__epm_check_if_package_from_repo
eepm
&&
return
[
"
$BASEDISTRNAME
"
=
"alt"
]
&&
[
"
$DISTRVERSION
"
!=
"Sisyphus"
]
&&
epm status
--original
eepm
&&
return
local
latest
=
"
$(
get_latest_version eepm
)
"
#[ -z "$latest" ] && 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