Skip to content

Commit cdf0c46

Browse files
committed
add --all option to mergerepo_c call, thus merging all versions of a package
1 parent 9702081 commit cdf0c46

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,26 @@ response: 204 NO CONTENT, 404 NOT FOUND
152152
```curl -X POST $HOST/admin/v1/shutdown```
153153

154154
response: 200 OK, 403 FORBIDDEN (when not in standalone mode)
155+
156+
157+
158+
## development cheat sheet
159+
160+
### build in docker container
161+
162+
```
163+
docker ...
164+
yum install createrepo_c
165+
scripts/init-virtualenv
166+
. ve/bin/activate
167+
168+
# do stuff
169+
pyb
170+
```
171+
172+
### create dummy rpm
173+
174+
```
175+
docker run -it -v $PWD:/local -w /local alanfranz/fwd-centos-7 bash
176+
fpm -s empty -t rpm -n foo -v 1.42
177+
```

build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
name = "yumrepos"
1414
summary = "yumrepos: simple yum repositories with minimal rest api"
1515
url = "https://github.com/arnehilmann/yumrepos"
16-
version = "0.9.8"
16+
version = "0.9.9"
1717

1818
authors = [Author('Arne Hilmann', 'arne.hilmann@gmail.com')]
1919

src/main/python/yumrepos/fs_backend.py

+1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def create_repo_metadata(self, reponame):
184184
while len(repos) < 2:
185185
repos.append("__empty__")
186186
cmd = [self.mergerepo_bin,
187+
"--all",
187188
"-o", repo_path,
188189
"--omit-baseurl"
189190
] + ["--repo=%s" % os.path.join(self.md_folder, rpm_name) for rpm_name in repos]

0 commit comments

Comments
 (0)