Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maxim Karasev
aports
Commits
3f8c817b
Commit
3f8c817b
authored
11 years ago
by
Timo Teräs
Browse files
Options
Downloads
Patches
Plain Diff
del: don't print own name as reverse dependency
parent
70e45998
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/del.c
+8
-2
8 additions, 2 deletions
src/del.c
with
8 additions
and
2 deletions
src/del.c
+
8
−
2
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
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment