Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions utilix/tarball.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def tarball_name(self):
def tarball_path(self):
return os.path.join(self.destination, self.tarball_name)

def create_tarball(self):
def create_tarball(self, overwrite=False):
"""Create the tarball of package."""

if os.path.exists(self.tarball_path):
if os.path.exists(self.tarball_path) and not overwrite:
raise RuntimeError(f"{self.tarball_path} already exists!")

# Get the origin of the package source
Expand Down