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
60
Issues
60
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
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
60ee6116
Commit
60ee6116
authored
Jan 17, 2012
by
Timo Teräs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db: print dependencies referring to missing tags instead of tags
parent
fc57b731
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
src/database.c
src/database.c
+11
-6
No files found.
src/database.c
View file @
60ee6116
...
...
@@ -1316,12 +1316,17 @@ int apk_db_open(struct apk_database *db, struct apk_db_options *dbopts)
}
/* repository id 0 is the no-tag repo */
for
(
i
=
1
;
i
<
db
->
num_repo_tags
;
i
++
)
{
if
(
!
db
->
repo_tags
[
i
].
allowed_repos
)
{
apk_warning
(
"Repository tag (%d) '"
BLOB_FMT
"' used in world is no longer available"
,
i
,
BLOB_PRINTF
(
*
db
->
repo_tags
[
i
].
name
));
db
->
missing_tags
=
1
;
}
for
(
i
=
0
;
i
<
db
->
world
->
num
;
i
++
)
{
struct
apk_dependency
*
dep
=
&
db
->
world
->
item
[
i
];
int
tag
=
dep
->
repository_tag
;
if
(
tag
==
0
||
db
->
repo_tags
[
tag
].
allowed_repos
!=
0
)
continue
;
apk_warning
(
"The repository tag for world dependency '%s@"
BLOB_FMT
"' does not exist"
,
dep
->
name
->
name
,
BLOB_PRINTF
(
*
db
->
repo_tags
[
tag
].
name
));
db
->
missing_tags
=
1
;
}
if
(
db
->
compat_newfeatures
)
{
...
...
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