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
c7af7a9d
Commit
c7af7a9d
authored
Jul 19, 2012
by
Danil Mikhailov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 'epm -ql, epm dist-upgrade'
parent
d5e0e506
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
2 deletions
+56
-2
epm
bin/epm
+5
-2
epm-queryl
bin/epm-queryl
+51
-0
No files found.
bin/epm
View file @
c7af7a9d
...
...
@@ -109,6 +109,9 @@ for opt in "$@" ; do
-e
|
remove
)
epm_cmd
=
remove
;;
-qa
|
list|packages
)
epm_cmd
=
packages
;;
dist-upgrade|upgrade
)
epm_cmd
=
upgrade
;;
...
...
@@ -121,8 +124,8 @@ for opt in "$@" ; do
-qf
)
epm_cmd
=
query_file
;;
-q
a
|
list|packages
)
epm_cmd
=
packages
-q
l
)
epm_cmd
=
queryl
;;
*
)
if
[
-f
"
$opt
"
]
;
then
...
...
bin/epm-queryl
0 → 100644
View file @
c7af7a9d
#!/bin/sh
#
# Copyright (C) 2012 Etersoft
# Copyright (C) 2012 Vitaly Lipatov <lav@etersoft.ru>
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
#
# copied from korinf/tools/run-script/scripts/search
epm_queryl
()
{
[
-n
"
$pkg_filenames
"
]
||
fatal
"Run query without names"
case
$DISTRNAME
in
"ALTLinux"
|
"PCLinux"
)
CMD
=
"rpm -ql"
;;
"Ubuntu"
|
"Debian"
)
CMD
=
"dpkg -L"
;;
"LinuxXP"
|
"Fedora"
|
"ASPLinux"
|
"CentOS"
|
"RHEL"
|
"Scientific"
)
CMD
=
"rpm -ql"
;;
"Mandriva"
)
CMD
=
"rpm -ql"
;;
"SUSE"
)
CMD
=
"rpm -ql"
;;
*
)
RET
=
1
CMD
=
"echo
\"
Do not known query command for DISTRNAME
$DISTRNAME
\"
"
;;
esac
docmd
$CMD
$pkg_filenames
}
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