Skip to content

Commit 331439e

Browse files
committed
Override misnamed status for dreampie
Dreampie is an anomaly, it has a Py3 subpackage but it does different thing then the main package. Dreampie itself is an app and should not be renamed. Enable overriding misnamed status with fedora-update.yaml.
1 parent c5a52ae commit 331439e

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

data/fedora-update.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ dpdk:
100100
Python 3 support committed but not yet released. (March 2016)
101101
dreampie:
102102
status: idle
103+
is_misnamed: False
103104
note: |
104105
There's a python2 and a python3 subpackage, but they do different
105106
things. dreampie-python3 is a plugin to run python3 interpreter

portingdb/load.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ def _merge_updates(base, updates, warnings=None, parent_keys=()):
142142
'overriding bug: {}: {}->{}'.format(
143143
': '.join(parent_keys), base.get(key), new_value))
144144

145+
# Override misnamed status for rpms in the package.
146+
if key == 'is_misnamed':
147+
for rpm in base.get('rpms', []):
148+
base['rpms'][rpm][key] = new_value
149+
145150
base[key] = new_value
146151

147152

0 commit comments

Comments
 (0)