Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
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
korinf
etersoft-build-utils
Commits
a50589e4
Commit
a50589e4
authored
Mar 12, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aptU: initial realize for -l option
parent
69d3f90b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
aptU
bin/aptU
+11
-1
No files found.
bin/aptU
View file @
a50589e4
...
@@ -8,9 +8,10 @@
...
@@ -8,9 +8,10 @@
load_mod gettext
load_mod gettext
if
[
"
$1
"
=
"-h"
]
;
then
if
[
"
$1
"
=
"-h"
]
;
then
echog
"aptU [-v] - update package and all it requires"
echog
"aptU [-v]
[-l]
- update package and all it requires"
echog
"Usage: aptU [package(s)]"
echog
"Usage: aptU [package(s)]"
echog
" -v - verbose"
echog
" -v - verbose"
echog
" -l - print list of required packages"
exit
0
exit
0
fi
fi
...
@@ -20,6 +21,13 @@ else
...
@@ -20,6 +21,13 @@ else
VERBOSE
=
">/dev/null"
VERBOSE
=
">/dev/null"
fi
fi
if
[
"
$1
"
=
"-l"
]
;
then
LISTFLAG
=
1
shift
fi
export
LC_ALL
=
C
get_requires
()
get_requires
()
{
{
rpm
--requires
$@
|
grep
-v
rpmlib |
cut
-f1
-d
" "
|
sort
-u
rpm
--requires
$@
|
grep
-v
rpmlib |
cut
-f1
-d
" "
|
sort
-u
...
@@ -70,3 +78,5 @@ install_packages()
...
@@ -70,3 +78,5 @@ install_packages()
}
}
install_packages
$@
install_packages
$@
[
-n
"
$LISTFLAG
"
]
&&
echo
"Possible requires packages for '
$@
':
$ALREADYHANDLEDAPT
"
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