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
61
Issues
61
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
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
9ef5bf6e
Commit
9ef5bf6e
authored
Feb 24, 2012
by
Timo Teräs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pkg, db: use 's' for source repository tags instead of 'p'
Will use 'p' for provides.
parent
426954fc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
src/database.c
src/database.c
+2
-1
src/package.c
src/package.c
+1
-1
test/pinning.installed
test/pinning.installed
+2
-2
No files found.
src/database.c
View file @
9ef5bf6e
...
...
@@ -776,6 +776,7 @@ int apk_db_index_read(struct apk_database *db, struct apk_bstream *bs, int repo)
ipkg
->
replaces_priority
=
apk_blob_pull_uint
(
&
l
,
10
);
break
;
case
'p'
:
case
's'
:
ipkg
->
repository_tag
=
apk_db_get_tag_id
(
db
,
l
);
break
;
default:
...
...
@@ -825,7 +826,7 @@ static int apk_db_write_fdb(struct apk_database *db, struct apk_ostream *os)
apk_blob_push_blob
(
&
bbuf
,
APK_BLOB_STR
(
"
\n
"
));
}
if
(
ipkg
->
repository_tag
)
{
apk_blob_push_blob
(
&
bbuf
,
APK_BLOB_STR
(
"
p
:"
));
apk_blob_push_blob
(
&
bbuf
,
APK_BLOB_STR
(
"
s
:"
));
apk_blob_push_blob
(
&
bbuf
,
*
db
->
repo_tags
[
ipkg
->
repository_tag
].
name
);
apk_blob_push_blob
(
&
bbuf
,
APK_BLOB_STR
(
"
\n
"
));
}
...
...
src/package.c
View file @
9ef5bf6e
...
...
@@ -748,7 +748,7 @@ int apk_pkg_add_info(struct apk_database *db, struct apk_package *pkg,
pkg
->
commit
=
apk_blob_cstr
(
value
);
break
;
case
'F'
:
case
'M'
:
case
'R'
:
case
'Z'
:
case
'r'
:
case
'q'
:
case
'a'
:
case
'p'
:
case
'a'
:
case
'p'
:
case
's'
:
/* installed db entries which are handled in database.c */
return
1
;
default:
...
...
test/pinning.installed
View file @
9ef5bf6e
...
...
@@ -4,7 +4,7 @@ V:3
S:1
I:1
D:b
p
:testing
s
:testing
C:Q1hdUpqRv5mYgJEqW52UmVsv23ysE=
P:b
...
...
@@ -18,5 +18,5 @@ V:3
S:1
I:1
D:a>=3
p
:testing
s
:testing
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