bodhi/tools/client.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 7d2df39e8c69d4cf011cffe529104e31cb2a4f8b
Author: Josh Boyer <jwboyer(a)hansolo.jdub.homelinux.org>
Date: Wed Feb 24 08:20:10 2010 -0500
Only filter Stable updates via --push-type
diff --git a/bodhi/tools/client.py b/bodhi/tools/client.py
index 0a88816..d4b3677 100755
--- a/bodhi/tools/client.py
+++ b/bodhi/tools/client.py
@@ -210,9 +210,14 @@ def main():
if opts.push_type:
fupdates = []
for ptype in opts.push_type:
- fdata = filter(lambda x: x['type'] == ptype,
+ # Filter all testing updates into the set, since
+ # we only want push_type to apply to stable.
+ fdata = filter(lambda x: x['type'] == ptype and
x['request'] == 'stable',
data['updates'])
fupdates += fdata
+ fdata = filter(lambda x: x['request'] == 'testing',
+ data['updates'])
+ fupdates += fdata
data['updates'] = fupdates
if opts.push_release:
Show replies by date