Ticket #696: hpkgbuild_gzip.patch
| File hpkgbuild_gzip.patch, 1.3 KB (added by nicholas, 2 years ago) |
|---|
-
(a) hpkgbuild vs. (b) hpkgbuild_gzip
a b 6 6 # copyright 2009 Alexander Deynichenko 7 7 # copyright 2009 HaikuBot (aka RISC) 8 8 # copyright 2010-2011 Jack Laxson (Jrabbit) 9 # copyright 2013 Nicholas L. Otley 9 10 10 11 info = {} 11 12 info['version'] = 'r' + '$Rev: 1358 $'[6:-2] … … 873 874 Popen(['xz', '-d', '-k', archiveFullPath]) 874 875 else: 875 876 sys.exit() 877 878 elif archiveFullPath.split('/')[-1].split('.')[-1] == 'gz': 879 gz = 0 880 try: 881 gz = Popen(['gzip', '-d', '-f', archiveFullPath]) 882 except (OSError, CalledProcessError), e: 883 # run the installoptionalsoftware prompt 884 if self.prompt_installer('gz'): 885 gz = Popen(['gzip', '-d', '-f', archiveFullPath]) 886 else: 887 sys.exit() 888 gz.wait() 889 876 890 tar = archiveFullPath[:-3] 877 891 if tarfile.is_tarfile(tar): 878 892 tf = tarfile.open(tar, 'r') … … 1121 1135 'hg': 'mercurial', 1122 1136 'cvs': 'cvs', 1123 1137 'bzr': 'bazaar', 1138 'gz': 'gzip' 1124 1139 } 1125 1140 if self.options.yes: 1126 1141 check_call('installoptionalpackage' + ' '
