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
02e4c644
Commit
02e4c644
authored
Aug 06, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm checkpkg: add --all support
parent
0d3eb2b1
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
#!/bin/sh
#
#
# Copyright (C) 2009, 2012, 2013, 2014, 2016, 2018 Etersoft
# Copyright (C) 2009, 2012, 2013, 2014, 2016, 2018
, 2022
Etersoft
# Copyright (C) 2009, 2012, 2013, 2014, 2016, 2018 Vitaly Lipatov <lav@etersoft.ru>
# 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
# 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
# it under the terms of the GNU Affero General Public License as published by
...
@@ -59,6 +59,22 @@ check_pkg_integrity()
...
@@ -59,6 +59,22 @@ check_pkg_integrity()
esac
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
()
__epm_check_installed_pkg
()
{
{
case
$PMTYPE
in
case
$PMTYPE
in
...
@@ -83,6 +99,11 @@ esac
...
@@ -83,6 +99,11 @@ esac
epm_checkpkg
()
epm_checkpkg
()
{
{
if
[
"
$1
"
=
"--all"
]
;
then
__epm_check_all_pkgs
return
fi
if
[
-n
"
$pkg_names
"
]
;
then
if
[
-n
"
$pkg_names
"
]
;
then
# TODO: если есть / или расширение, это отсутствующий файл
# TODO: если есть / или расширение, это отсутствующий файл
info
"Suggest
$pkg_names
are name(s) of installed package(s)"
info
"Suggest
$pkg_names
are name(s) of installed package(s)"
...
...
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