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
fa47cadb
Commit
fa47cadb
authored
Jul 09, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db: removed apk_repository_update_all() as its no longer needed
We use APK_UPDATE_CACHE apk_flag instead.
parent
d931f9fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
15 deletions
+1
-15
src/apk_database.h
src/apk_database.h
+0
-2
src/database.c
src/database.c
+0
-11
src/update.c
src/update.c
+1
-2
No files found.
src/apk_database.h
View file @
fa47cadb
...
...
@@ -140,8 +140,6 @@ int apk_db_index_write(struct apk_database *db, struct apk_ostream *os);
int
apk_db_add_repository
(
apk_database_t
db
,
apk_blob_t
repository
);
int
apk_repository_update
(
struct
apk_database
*
db
,
struct
apk_repository
*
repo
);
int
apk_repository_update_all
(
struct
apk_database
*
db
);
int
apk_cache_download
(
struct
apk_database
*
db
,
csum_t
csum
,
const
char
*
url
,
const
char
*
item
);
int
apk_cache_exists
(
struct
apk_database
*
db
,
csum_t
csum
,
const
char
*
item
);
...
...
src/database.c
View file @
fa47cadb
...
...
@@ -1009,17 +1009,6 @@ int apk_repository_update(struct apk_database *db, struct apk_repository *repo)
return
apk_cache_download
(
db
,
repo
->
url_csum
,
repo
->
url
,
apk_index_gz
);
}
int
apk_repository_update_all
(
struct
apk_database
*
db
)
{
int
i
,
ret
;
for
(
i
=
0
;
i
<
db
->
num_repos
;
i
++
)
{
ret
=
apk_repository_update
(
db
,
&
db
->
repos
[
i
]);
if
(
ret
<
0
)
return
ret
;
}
return
0
;
}
int
apk_db_add_repository
(
apk_database_t
_db
,
apk_blob_t
repository
)
{
struct
apk_database
*
db
=
_db
.
db
;
...
...
src/update.c
View file @
fa47cadb
...
...
@@ -19,10 +19,9 @@ static int update_main(void *ctx, int argc, char **argv)
{
struct
apk_database
db
;
apk_flags
|=
APK_UPDATE_CACHE
;
if
(
apk_db_open
(
&
db
,
apk_root
,
APK_OPENF_READ
)
<
0
)
return
-
1
;
apk_repository_update_all
(
&
db
);
apk_db_close
(
&
db
);
return
0
;
...
...
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