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
46e5b729
Commit
46e5b729
authored
Feb 13, 2014
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get repo info for first time
parent
cc791090
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
0 deletions
+57
-0
epm-check_updated_repo
bin/epm-check_updated_repo
+42
-0
epm-install
bin/epm-install
+4
-0
epm-search
bin/epm-search
+5
-0
epm-upgrade
bin/epm-upgrade
+6
-0
No files found.
bin/epm-check_updated_repo
0 → 100644
View file @
46e5b729
#!/bin/sh
#
# Copyright (C) 2014 Etersoft
# Copyright (C) 2014 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
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
__is_repo_info_download
()
{
case
$PMTYPE
in
apt-
*
)
test
-r
/var/cache/apt/pkgcache.bin
||
return
;;
*
)
;;
esac
return
0
}
update_repo_if_needed
()
{
if
!
__is_repo_info_download
;
then
load_helper epm-update
epm_update
return
fi
# TODO: if repo info is very obsoleted (a few days?), we need run update
}
bin/epm-install
View file @
46e5b729
...
...
@@ -18,6 +18,7 @@
#
load_helper epm-query
load_helper epm-check_updated_repo
# TODO: use when run install with epm --skip-installed install
filter_out_installed_packages
()
...
...
@@ -375,6 +376,9 @@ epm_install()
[
-z
"
$files$names
"
]
&&
echo
"Skip empty install list"
&&
return
22
# it is useful for first time running
update_repo_if_needed
epm_install_names
$names
||
return
epm_install_files
$files
}
bin/epm-search
View file @
46e5b729
...
...
@@ -17,6 +17,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
load_helper epm-check_updated_repo
__epm_search_output
()
{
local
CMD
...
...
@@ -148,6 +150,9 @@ epm_search()
{
[
-n
"
$pkg_filenames
"
]
||
fatal
"Please, use search with some argument"
# it is useful for first time running
update_repo_if_needed
# FIXME: do it better
local
MGS
MGS
=
$(
eval
__epm_search_make_grep
$quoted_args
)
...
...
bin/epm-upgrade
View file @
46e5b729
...
...
@@ -17,9 +17,15 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
load_helper epm-check_updated_repo
epm_upgrade
()
{
local
CMD
# it is useful for first time running
update_repo_if_needed
echo
"Run command for upgrade packages"
case
$PMTYPE
in
...
...
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