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
Vladislav
eepm
Commits
0a234191
Commit
0a234191
authored
Feb 19, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fixes
parent
5ef497a7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
epm-programs
bin/epm-programs
+1
-0
epm-query
bin/epm-query
+1
-1
epm-query_file
bin/epm-query_file
+2
-2
epm-simulate
bin/epm-simulate
+2
-2
No files found.
bin/epm-programs
View file @
0a234191
...
...
@@ -25,6 +25,7 @@ epm_programs()
local
DESKTOPDIR
=
/usr/share/applications
[
-d
"
$DESKTOPDIR
"
]
||
fatal
"There is no
$DESKTOPDIR
dir on the system."
#find /usr/share/applications -type f -name "*.desktop" | while read f; do pkg_files="$f" quiet=1 short=1 epm_query_file ; done | sort -u
showcmd
"find /usr/share/applications -type f -name "
*
.desktop
" | xargs
$0
-qf --quiet --short | sort -u"
find /usr/share/applications
-type
f
-name
"*.desktop"
|
\
xargs
$0
-qf
--quiet
--short
|
sort
-u
}
bin/epm-query
View file @
0a234191
...
...
@@ -104,7 +104,7 @@ separate_installed()
{
pkg_installed
=
pkg_noninstalled
=
for
i
$*
;
do
for
i
in
$*
;
do
is_installed
$i
&&
pkg_installed
=
"
$pkg_installed
$i
"
||
pkg_noninstalled
=
"
$pkg_noninstalled
$i
"
done
}
...
...
bin/epm-query_file
View file @
0a234191
...
...
@@ -70,7 +70,7 @@ __do_query()
;;
apt-dpkg
)
showcmd dpkg
-S
$1
dpkg_print_name_version
$(
dpkg
-S
$1
|
sed
-e
"s|:.*||"
)
dpkg_print_name_version
$(
dpkg
-S
$1
|
grep
-v
"^diversion by"
|
sed
-e
"s|:.*||"
)
return
;;
yum-rpm|urpm-rpm
)
CMD
=
"rpm -qf"
...
...
@@ -110,7 +110,7 @@ __do_short_query()
;;
NOapt-dpkg
)
showcmd dpkg
-S
$1
dpkg_print_name_version
$(
dpkg
-S
$1
|
sed
-e
"s|:.*||"
)
dpkg_print_name_version
$(
dpkg
-S
$1
|
sed
-e
"s|:.*||"
|
grep
-v
"^diversion by"
)
return
;;
NOemerge
)
CMD
=
"equery belongs"
...
...
bin/epm-simulate
View file @
0a234191
...
...
@@ -33,8 +33,8 @@ __use_yum_assumeno()
_epm_do_simulate
()
{
local
CMD
local
filenames
=
$@
local
CMD
local
filenames
=
"
$*
"
case
$PMTYPE
in
apt-rpm|apt-dpkg
)
...
...
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