Ticket #696: haikuporter_gzip.patch
| File haikuporter_gzip.patch, 1.3 KB (added by nicholas, 2 years ago) |
|---|
-
haikuporter
old new 8 8 # copyright 2010-2011 Jack Laxson (Jrabbit) 9 9 # copyright 2012 TriEdge AI 10 10 # copyright 2012 Theodore Kokkoris 11 # copyright 2013 Nicholas L. Otley 11 12 12 13 info = {} 13 14 info['version'] = 'r' + '$Rev: 2224 $'[6:-2] … … 737 738 else: 738 739 sys.exit() 739 740 xz.wait() 741 742 743 elif archiveFullPath.split('/')[-1].split('.')[-1] == 'gz': 744 gz = 0 745 try: 746 gz = Popen(['gzip', '-d', '-f', archiveFullPath]) 747 except (OSError, CalledProcessError), e: 748 # run the installoptionalsoftware prompt 749 if self.prompt_installer('gz'): 750 gz = Popen(['gzip', '-d', '-f', archiveFullPath]) 751 else: 752 sys.exit() 753 gz.wait() 754 740 755 tar = archiveFullPath[:-3] 741 756 if tarfile.is_tarfile(tar): 742 757 tf = tarfile.open(tar, 'r') … … 988 1003 'hg': 'mercurial', 989 1004 'cvs': 'cvs', 990 1005 'bzr': 'bazaar', 991 'cmake': 'cmake' 1006 'cmake': 'cmake', 1007 'gz': 'gzip' 992 1008 } 993 1009 if self.options.yes: 994 1010 check_call('installoptionalpackage' + ' '
