[Pypt-offline-general] SF.net SVN: pypt-offline: [146] trunk/pypt_core.py
Status: Beta
Brought to you by:
riteshsarraf
From: <rit...@us...> - 2007-05-19 20:50:08
|
Revision: 146 http://svn.sourceforge.net/pypt-offline/?rev=146&view=rev Author: riteshsarraf Date: 2007-05-19 13:50:10 -0700 (Sat, 19 May 2007) Log Message: ----------- * Not all bug reports should be downloaded. * I'm wondering if the bug reports classified as Normal are worth downloading ? The bugs that break the system are usually Important, Severe or Grave. Modified Paths: -------------- trunk/pypt_core.py Modified: trunk/pypt_core.py =================================================================== --- trunk/pypt_core.py 2007-05-19 18:03:15 UTC (rev 145) +++ trunk/pypt_core.py 2007-05-19 20:50:10 UTC (rev 146) @@ -305,6 +305,10 @@ return False bug_list = [] + bug_types = ["Resolved bugs", "Minor bugs", "Wishlist items"] + #INFO: These are the ignore bug types. No one should really be caring about these + + if ZipFileName is not None: AddToArchive = Archiver(lock) @@ -314,8 +318,13 @@ for x in bugs_list: (sub_bugs_header, sub_bugs_list) = x - if not "Resolved bugs" in sub_bugs_header: - + for BugType in bug_types: + if BugType in sub_bugs_header: + bug_flag = 0 + break + bug_flag = 1 + + if bug_flag: for x in sub_bugs_list: break_bugs = x.split(':') bug_num = string.lstrip(break_bugs[0], '#') @@ -921,6 +930,8 @@ #data.write(file.read(filename)) #data = file.read(filename) + # retval = subprocess.call(['less', filename]) + if pypt_magic.file(os.path.abspath(filename)) == "application/x-bzip2": archive.decompress_the_file(os.path.abspath(filename), target_path, filename, 1) elif pypt_magic.file(os.path.abspath(filename)) == "application/x-gzip": This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |