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
1
Merge Requests
1
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
02e4c644
Commit
02e4c644
authored
3 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm checkpkg: add --all support
parent
0d3eb2b1
master
devel
new3
todo-packd
todo-serv-user
tt
tt1
Tags unavailable
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
epm-checkpkg
bin/epm-checkpkg
+23
-2
No files found.
bin/epm-checkpkg
View file @
02e4c644
#!/bin/sh
#
# Copyright (C) 2009, 2012, 2013, 2014, 2016, 2018 Etersoft
# Copyright (C) 2009, 2012, 2013, 2014, 2016, 2018 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2009, 2012, 2013, 2014, 2016, 2018
, 2022
Etersoft
# Copyright (C) 2009, 2012, 2013, 2014, 2016, 2018
, 2022
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
...
...
@@ -59,6 +59,22 @@ check_pkg_integrity()
esac
}
__epm_check_all_pkgs
()
{
local
j cl
#local play_installed="$(epm play --list-installed-packages)"
epm qa
--short
| xargs
-n20
|
while
read
cl
;
do
#cl="$(estrlist exclude "$play_installed" "$i")"
__epm_check_installed_pkg
$cl
&&
continue
# check each package
for
j
in
$cl
;
do
__epm_check_installed_pkg
$j
&&
continue
# TODO: check play installed too
epm
--auto
reinstall
$j
</dev/null
||
exit
done
done
}
__epm_check_installed_pkg
()
{
case
$PMTYPE
in
...
...
@@ -83,6 +99,11 @@ esac
epm_checkpkg
()
{
if
[
"
$1
"
=
"--all"
]
;
then
__epm_check_all_pkgs
return
fi
if
[
-n
"
$pkg_names
"
]
;
then
# TODO: если есть / или расширение, это отсутствующий файл
info
"Suggest
$pkg_names
are name(s) of installed package(s)"
...
...
This diff is collapsed.
Click to expand it.
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