Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
apk-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
59
Issues
59
List
Boards
Labels
Service Desk
Milestones
Merge Requests
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
apk-tools
Commits
09b28210
Commit
09b28210
authored
Jan 06, 2012
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
info: display short info if packages are given
instead of just list all installed package
parent
92c75d6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/info.c
src/info.c
+10
-0
No files found.
src/info.c
View file @
09b28210
...
@@ -436,6 +436,13 @@ static int info_parse(void *ctx, struct apk_db_options *dbopts,
...
@@ -436,6 +436,13 @@ static int info_parse(void *ctx, struct apk_db_options *dbopts,
return
0
;
return
0
;
}
}
static
int
info_package_short
(
struct
info_ctx
*
ictx
,
struct
apk_database
*
db
,
int
argc
,
char
**
argv
)
{
ictx
->
subaction_mask
|=
APK_INFO_DESC
|
APK_INFO_URL
|
APK_INFO_SIZE
;
return
info_package
(
ictx
,
db
,
argc
,
argv
);
}
static
int
info_main
(
void
*
ctx
,
struct
apk_database
*
db
,
int
argc
,
char
**
argv
)
static
int
info_main
(
void
*
ctx
,
struct
apk_database
*
db
,
int
argc
,
char
**
argv
)
{
{
struct
info_ctx
*
ictx
=
(
struct
info_ctx
*
)
ctx
;
struct
info_ctx
*
ictx
=
(
struct
info_ctx
*
)
ctx
;
...
@@ -444,6 +451,9 @@ static int info_main(void *ctx, struct apk_database *db, int argc, char **argv)
...
@@ -444,6 +451,9 @@ static int info_main(void *ctx, struct apk_database *db, int argc, char **argv)
if
(
ictx
->
action
!=
NULL
)
if
(
ictx
->
action
!=
NULL
)
return
ictx
->
action
(
ictx
,
db
,
argc
,
argv
);
return
ictx
->
action
(
ictx
,
db
,
argc
,
argv
);
if
(
argc
>
0
)
return
info_package_short
(
ictx
,
db
,
argc
,
argv
);
return
info_list
(
ictx
,
db
,
argc
,
argv
);
return
info_list
(
ictx
,
db
,
argc
,
argv
);
}
}
...
...
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