

class Package:
    """A package managed by GoldDust"""
    def __init__(self):
        self.name = ""
        self.version = ""

    @property
    def tarball(self):
        """The tarball file name for this package."""
        return "{}-{}.tar.bz2".format(self.name, self.version)

    @property
    def sig_file(self):
        """The detached signature file name for this package."""
        return "{}.sig".format(self.tarball)


class InstallScript:
    """Package pre/post install action script.
    """
    def pre_install(self):
        """Called before any files are installed.
        """
        pass

    def post_install(self):
        """Called after files are installed.
        """
        pass



class Package:
    """A package managed by GoldDust"""
    def __init__(self):
        self.name = ""
        self.version = ""

    @property
    def tarball(self):
        """The tarball file name for this package."""
        return "{}-{}.tar.bz2".format(self.name, self.version)

    @property
    def sig_file(self):
        """The detached signature file name for this package."""
        return "{}.sig".format(self.tarball)


class InstallScript:
    """Package pre/post install action script.

    These functions are used to perform extra work beyond extracting
    files.

    Note that JAR modification should only be done using the `munge_jar`
    function. This lets GoldDust know that you're modifying the JAR so it
    can properly handle other JAR mod packages as well.
    """
    def pre_install(self):
        """Called before any files are installed.
        """
        pass

    def munge_jar(self, jar):
        """Modify the Minecraft JAR file.
        """
        pass

    def post_install(self):
        """Called after files are installed.
        """
        pass

Add munge_jar stub for InstallScript
Add munge_jar stub for InstallScript

  
  
  class Package:
      """A package managed by GoldDust"""
      def __init__(self):
          self.name = ""
          self.version = ""
  
      @property
      def tarball(self):
          """The tarball file name for this package."""
          return "{}-{}.tar.bz2".format(self.name, self.version)
  
      @property
      def sig_file(self):
          """The detached signature file name for this package."""
          return "{}.sig".format(self.tarball)
  
  
  class InstallScript:
      """Package pre/post install action script.
+ 
+     These functions are used to perform extra work beyond extracting
+     files.
+ 
+     Note that JAR modification should only be done using the `munge_jar`
+     function. This lets GoldDust know that you're modifying the JAR so it
+     can properly handle other JAR mod packages as well.
      """
      def pre_install(self):
          """Called before any files are installed.
+         """
+         pass
+ 
+     def munge_jar(self, jar):
+         """Modify the Minecraft JAR file.
          """
          pass
  
      def post_install(self):
          """Called after files are installed.
          """
          pass
  
Add munge_jar stub for InstallScript
## Code Before:


class Package:
    """A package managed by GoldDust"""
    def __init__(self):
        self.name = ""
        self.version = ""

    @property
    def tarball(self):
        """The tarball file name for this package."""
        return "{}-{}.tar.bz2".format(self.name, self.version)

    @property
    def sig_file(self):
        """The detached signature file name for this package."""
        return "{}.sig".format(self.tarball)


class InstallScript:
    """Package pre/post install action script.
    """
    def pre_install(self):
        """Called before any files are installed.
        """
        pass

    def post_install(self):
        """Called after files are installed.
        """
        pass

## Instruction:
Add munge_jar stub for InstallScript
## Code After:


class Package:
    """A package managed by GoldDust"""
    def __init__(self):
        self.name = ""
        self.version = ""

    @property
    def tarball(self):
        """The tarball file name for this package."""
        return "{}-{}.tar.bz2".format(self.name, self.version)

    @property
    def sig_file(self):
        """The detached signature file name for this package."""
        return "{}.sig".format(self.tarball)


class InstallScript:
    """Package pre/post install action script.

    These functions are used to perform extra work beyond extracting
    files.

    Note that JAR modification should only be done using the `munge_jar`
    function. This lets GoldDust know that you're modifying the JAR so it
    can properly handle other JAR mod packages as well.
    """
    def pre_install(self):
        """Called before any files are installed.
        """
        pass

    def munge_jar(self, jar):
        """Modify the Minecraft JAR file.
        """
        pass

    def post_install(self):
        """Called after files are installed.
        """
        pass
