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
62
Issues
62
List
Boards
Labels
Service Desk
Milestones
Merge Requests
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
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
cf08b748
Commit
cf08b748
authored
Jan 16, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://dev.alpinelinux.org/gitroot/apk-tools
parents
61341384
82b9cb31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
src/database.c
src/database.c
+13
-2
No files found.
src/database.c
View file @
cf08b748
...
...
@@ -1076,7 +1076,7 @@ int apk_db_install_pkg(struct apk_database *db,
struct
install_ctx
ctx
;
csum_t
csum
;
char
file
[
256
];
int
r
;
int
r
,
i
;
if
(
fchdir
(
db
->
root_fd
)
<
0
)
return
errno
;
...
...
@@ -1097,9 +1097,20 @@ int apk_db_install_pkg(struct apk_database *db,
/* Install the new stuff */
if
(
newpkg
->
filename
==
NULL
)
{
for
(
i
=
0
;
i
<
APK_MAX_REPOS
;
i
++
)
if
(
newpkg
->
repos
&
BIT
(
i
))
break
;
if
(
i
>=
APK_MAX_REPOS
)
{
apk_error
(
"%s-%s: not present in any repository"
,
newpkg
->
name
->
name
,
newpkg
->
version
);
return
-
1
;
}
snprintf
(
file
,
sizeof
(
file
),
"%s/%s-%s.apk"
,
db
->
repos
[
0
].
url
,
newpkg
->
name
->
name
,
newpkg
->
version
);
db
->
repos
[
i
].
url
,
newpkg
->
name
->
name
,
newpkg
->
version
);
bs
=
apk_bstream_from_url
(
file
);
}
else
bs
=
apk_bstream_from_file
(
newpkg
->
filename
);
...
...
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