forked from saltstack/salt
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:saltstack/salt into hotfix/pylin…
…t/C0103
- Loading branch information
Showing
2 changed files
with
43 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
''' | ||
Support for Gentoolkit | ||
''' | ||
|
||
def revdep_rebuild(lib=None): | ||
''' | ||
Fix up broken reverse dependencies | ||
lib | ||
Search for reverse dependencies for a particular library rather | ||
than every library on the system. It can be a full path to a | ||
library or basic regular expression. | ||
CLI Example:: | ||
salt '*' gentoolkit.revdep_rebuild | ||
''' | ||
cmd = 'revdep-rebuild --quiet --no-progress' | ||
if lib is not None: | ||
cmd += ' --library={0}'.format(lib) | ||
return __salt__['cmd.retcode'](cmd) == 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters