Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
alpine
apk-tools
Commits
6078d305
Commit
6078d305
authored
Jan 20, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
info: don't print package name unless its installed
parent
20d242a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/info.c
src/info.c
+2
-1
No files found.
src/info.c
View file @
6078d305
...
...
@@ -118,7 +118,8 @@ static int info_contents(struct apk_database *db, int argc, char **argv)
}
for
(
j
=
0
;
j
<
name
->
pkgs
->
num
;
j
++
)
{
struct
apk_package
*
pkg
=
name
->
pkgs
->
item
[
j
];
if
(
apk_verbosity
==
1
)
if
(
apk_verbosity
==
1
&&
apk_pkg_get_state
(
pkg
)
==
APK_STATE_INSTALL
)
printf
(
"
\n
%s-%s contains:
\n
"
,
pkg
->
name
->
name
,
pkg
->
version
);
info_print_contents
(
name
->
pkgs
->
item
[
j
]);
...
...
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