Unverified Kaydet (Commit) 32bd9263 authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

GZ type inary files

inary için gzip file format eklendi.
üst 170d46a0
......@@ -69,6 +69,8 @@ class Constants(metaclass=Singleton):
self.__c.lzma_suffix = ".lzma"
# suffix for xz
self.__c.xz_suffix = ".xz"
# suffix for gz
self.__c.gz_suffix = ".gz"
self.__c.partial_suffix = ".part"
self.__c.temporary_suffix = ".tmp"
......
......@@ -1208,13 +1208,15 @@ package might be a good solution."))
orgname = util.join_path("debug", finfo.path)
pkg.add_to_install(orgname, finfo.path)
if self.target_package_format == "1.2":
if self.target_package_format == "1.3":
archive_format = ".tar.gz"
elif self.target_package_format == "1.2":
archive_format = ".tar.xz"
elif self.target_package_format == "1.1":
archive_format = ".tar.lzma"
else:
# "1.0" format does not have an archive
archive_format = ""
archive_format = ".tar"
self.metadata.package.installTarHash = util.sha1_file(
"{0}/install{1}".format(self.pkg_dir(), archive_format))
......
......@@ -40,13 +40,16 @@ class Package:
"""INARY Package Class provides access to a inary package (.inary
file)."""
formats = ("1.0", "1.1", "1.2")
formats = ("1.0", "1.1", "1.2", "1.3")
default_format = "1.2"
timestamp = None
@staticmethod
def archive_name_and_format(package_format):
if package_format == "1.2":
if package_format == "1.3":
archive_format = "targz"
archive_suffix = ctx.const.gz_suffix
elif package_format == "1.2":
archive_format = "tarxz"
archive_suffix = ctx.const.xz_suffix
elif package_format == "1.1":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment