Update README.md

This commit is contained in:
Adam Samalik 2015-04-10 08:58:13 +02:00
parent 6d32b0ef2c
commit 53b93e76d1

View file

@ -19,7 +19,8 @@ User cat interact with the Dist Git server using client probably based on [rpkg]
### Package Database communication ### Package Database communication
The following is an example JSON data comming from the Package Database which would create two packages: *copr-frontend* and *copr-backend*. The first package would be for Fedora 21 only and permissions to commit into this repo would be granted to users *mirek*, *adam* and anyone in the group *provenpackager*. The *copr-backend* package would be for Fedora 21 and CentOS 7. The permissions would be processed the same way as for the first package. The following is an example JSON data comming from the Package Database which would create two packages: *copr-frontend* and *copr-backend*. The first package would be for Fedora 21 only and permissions to commit into this repo would be granted to users *mirek*, *adam* and anyone in the group *provenpackager*. The *copr-backend* package would be for Fedora 21 and CentOS 7. The permissions would be processed the same way as for the first package.
"packageAcls": { ```JSON
"packageAcls": {
"copr-frontend": { "copr-frontend": {
"fedora-21": { "fedora-21": {
"commit": { "commit": {
@ -34,7 +35,7 @@ The following is an example JSON data comming from the Package Database which wo
"groups": ["provenpackager"], "groups": ["provenpackager"],
"people": ["mirek", "valentin"] "people": ["mirek", "valentin"]
} }
} },
"centos-7": { "centos-7": {
"commit": { "commit": {
"groups": ["provenpackager"], "groups": ["provenpackager"],
@ -42,4 +43,9 @@ The following is an example JSON data comming from the Package Database which wo
} }
} }
} }
} }
```
The final result would consist of two package repositories:
- *copr-frontend* with branches *master* and *fedora-21*
- *copr-backend* with three branches *master*, *fedora-21* and *centos-7*