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
fe52b727
Commit
fe52b727
authored
Sep 06, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve some commands on Gentoo
parent
bf1133da
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
8 deletions
+28
-8
epm-autoremove
bin/epm-autoremove
+1
-1
epm-changelog
bin/epm-changelog
+6
-3
epm-checkpkg
bin/epm-checkpkg
+8
-2
epm-info
bin/epm-info
+7
-0
epm-query
bin/epm-query
+1
-1
epm-requires
bin/epm-requires
+4
-0
epm-sh-functions
bin/epm-sh-functions
+1
-1
No files found.
bin/epm-autoremove
View file @
fe52b727
...
...
@@ -46,7 +46,7 @@ case $PMTYPE in
;;
emerge
)
sudocmd emerge
--depclean
docmd epm
--skip-installed
install
gentoolkit
assure_exists revdep-rebuild
sudocmd revdep-rebuild
;;
pacman
)
...
...
bin/epm-changelog
View file @
fe52b727
...
...
@@ -46,12 +46,11 @@ __epm_changelog_local_names()
docmd_foreach
"rpm --changelog"
$@
| less
;;
apt-dpkg
)
# FIXME: only first pkg
docmd zcat /usr/share/doc/
$1
/changelog.Debian.gz | less
;;
emerge
)
docmd view /usr/portage/category/
$1
/ChangeLog | less
#
docmd equery changes -f $1 | less
assure_exists equery
docmd equery changes
-f
$1
| less
;;
pacman
)
docmd pacman
-Qc
$1
| less
...
...
@@ -83,6 +82,10 @@ __epm_changelog_unlocal_names()
#zypper-rpm)
# sudocmd zypper clean
# ;;
emerge
)
assure_exists equery
docmd equery changes
-f
$1
| less
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
...
...
bin/epm-checkpkg
View file @
fe52b727
...
...
@@ -39,8 +39,10 @@ check_pkg_integrity()
;;
*
)
docmd erc
test
"
$PKG
"
&&
return
which erc
>
/dev/null 2>/dev/null
&&
fatal
"Check failed"
fatal
"Install erc package."
which erc
>
/dev/null 2>/dev/null
&&
fatal
"Check failed."
fatal
"Install erc package for file package."
# TODO
epm
install
erc
;;
esac
}
...
...
@@ -54,6 +56,10 @@ case $PMTYPE in
*
-dpkg
)
docmd debsums
$@
;;
emerge
)
assure_exists equery
docmd equery check
$@
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
...
...
bin/epm-info
View file @
fe52b727
...
...
@@ -71,6 +71,13 @@ case $PMTYPE in
is_installed
$pkg_names
&&
docmd conary query
$pkg_names
--info
&&
return
docmd conary repquery
$pkg_names
--info
;;
emerge
)
assure_exists equery
docmd equery meta
$pkg_names
docmd equery which
$pkg_names
docmd equery uses
$pkg_names
docmd equery size
$pkg_names
;;
slackpkg
)
docmd /usr/sbin/slackpkg info
$pkg_names
;;
...
...
bin/epm-query
View file @
fe52b727
...
...
@@ -142,7 +142,7 @@ __epm_query_name()
conary
)
CMD
=
"conary query"
;;
brew
)
home
brew
)
warning
"fix query"
return
1
;;
...
...
bin/epm-requires
View file @
fe52b727
...
...
@@ -59,6 +59,10 @@ case $PMTYPE in
apt-dpkg
)
CMD
=
"apt-cache depends"
;;
emerge
)
assure_exists equery
CMD
=
"equery depgraph"
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
...
...
bin/epm-sh-functions
View file @
fe52b727
...
...
@@ -224,7 +224,7 @@ assure_exists()
PATH
=
$PATH
:/sbin:/usr/sbin which
$1
2>/dev/null
>
/dev/null
&&
return
echo
"Install appropriate package for
$1
command..."
case
$1
in
equery
)
equery
|revdep-rebuild
)
epm
install
gentoolkit
;;
apt-repo
)
...
...
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