Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
apk-tools
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
39
Issues
39
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
apk-tools
Commits
3f8c817b
Commit
3f8c817b
authored
Jul 08, 2013
by
Timo Teräs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
del: don't print own name as reverse dependency
parent
70e45998
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
del.c
src/del.c
+8
-2
No files found.
src/del.c
View file @
3f8c817b
...
...
@@ -47,6 +47,9 @@ static void print_not_deleted_pkg(struct apk_package *pkg0, struct apk_dependenc
{
struct
not_deleted_ctx
*
ctx
=
(
struct
not_deleted_ctx
*
)
pctx
;
if
(
pkg0
->
name
==
ctx
->
name
)
goto
no_print
;
if
(
!
ctx
->
header
)
{
apk_message
(
"World updated, but the following packages are not removed due to:"
);
ctx
->
header
=
1
;
...
...
@@ -57,6 +60,7 @@ static void print_not_deleted_pkg(struct apk_package *pkg0, struct apk_dependenc
}
apk_print_indented
(
&
ctx
->
indent
,
APK_BLOB_STR
(
pkg0
->
name
->
name
));
no_print:
apk_pkg_foreach_reverse_dependency
(
pkg0
,
ctx
->
matches
,
print_not_deleted_pkg
,
pctx
);
}
...
...
@@ -114,8 +118,10 @@ static int del_main(void *pctx, struct apk_database *db, struct apk_string_array
foreach_array_item
(
change
,
changeset
.
changes
)
if
(
change
->
new_pkg
!=
NULL
)
change
->
new_pkg
->
marked
=
1
;
apk_name_foreach_matching
(
db
,
args
,
apk_foreach_genid
(),
print_not_deleted_name
,
&
ndctx
);
apk_name_foreach_matching
(
db
,
args
,
apk_foreach_genid
()
|
APK_FOREACH_MARKED
|
APK_DEP_SATISFIES
,
print_not_deleted_name
,
&
ndctx
);
if
(
ndctx
.
header
)
printf
(
"
\n
"
);
...
...
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