Bug#634927: Acknowledgement (gen-orphaned includes duplicates and closed bugs)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This time with patch (attached)
- --
with kind regards,
Arno Töll
IRC: daemonkeeper on Freenode/OFTC
GnuPG Key-ID: 0x9D80F36D
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJOJ2T/AAoJEMcrUe6dgPNtb1QQALUNGgYhkaJXguhAMhHWTsMI
cdaVgDwY/A26bNiRdEwcdF6lFG0NAiLRaxJX+tyDBCjd3ujN2lN5yqn19YMUlhMM
OSPCq/y69Ssv4zim923iJWW30ICPOgBia97OR8/ObFlJstknotjTQ6iu42h/6tu5
rYxRrLjyLLhiX7hrxV8tmuBEC2KSG/7bbywz1S6HAI1PO7Kk1HgxD5au9EULf+qf
v5vbiFVGbMFlMtjwALYYmjpuoeCwbJbG7bXljs84fN9/ZW38hOXasFgPIrMEHxXy
MVoNlrfzL7B3AJbckJF8LOEpyZiLmWyw5S1vXpc2Gu8vh1SOoxEsLVTqeJMUofUn
IirRmeGnV8L7tq4okOny53UlGIqCXwXE61ou9uGh6NDnJasbRUnBs6eqTPoP6kr5
9ztTeC2murL2dCjsmUwFqXIwEbYPbyXUN7VISxvm8jTJ6Zb7mwPLIpiRSahtuDVs
Ei3BDarME6p/TU/sJddccRkee8RQ3nBL9UR6o3HlwEh1j+InQlbxVpelSjmirM+z
BPhRQKtkK0d4+y36mx1xv1UuWOJso0sHLt/Kfl2qTd0FzoQZ8btE4Pyq0wyKcZHt
IzS2tp+kPfedYBRr5hKTcScbRSzlMR49VqWBIlZxjq/FZwYD0vlhp9yWdEmJJhyK
OtTFPFYrKFi7NaVSKxC6
=sOh/
-----END PGP SIGNATURE-----
--- gen-orphaned-r2545 2011-07-20 22:18:31.349210248 +0200
+++ gen-orphaned 2011-07-21 00:33:01.561228259 +0200
@@ -101,6 +102,26 @@
for bugs in raw_bugs['item']:
current_bug = bugs['value']
+ # Skip bugs being done or archived
+ if ( len(current_bug['done']) or current_bug['archived']) :
+ continue
+
+ # Skip merged bugs which have an older counterpart
+ if ( current_bug['mergedwith'] ):
+ merged_bug = int( min( str.split(str(current_bug['mergedwith']) ) ) )
+ # This is the "jwilk hack(TM)". This is, to add bugs nonetheless which are
+ # duplicates of older ones, but the older is not tagged Orphaned ("O:")
+ for remaining_bugs in raw_bugs['item']:
+ if ( remaining_bugs['key'] == merged_bug ):
+ merged_bug = remaining_bugs['value']
+ break
+ else:
+ print("Could not retrieve expected duplicate bug in WNPP list\n")
+ sys.exit(1)
+
+ if ( current_bug['id'] > merged_bug['id'] and merged_bug['subject'].startswith("O:") ):
+ continue
+
# Skip packages with illegal subject line
parsed_subject = re.match( "(\w+):\s+(\S+)", current_bug['subject'] )
if ( not parsed_subject ):
Reply to: