Skip to content
Snippets Groups Projects
Commit 0f51231f authored by nimrod's avatar nimrod
Browse files

Running 'fab clean' now runs all commands, even if some files are missing.

parent b283e57a
No related branches found
No related tags found
No related merge requests found
......@@ -7,3 +7,4 @@ debian/dcpman.prerm.debhelper
debian/dcpman.substvars
source/__pycache__
source/ui.py
*.pyc
#!/usr/bin/env python
from fabric.api import task, local
from fabric.api import task, local, settings
@task
def publish ():
......@@ -12,5 +12,8 @@ def build ():
local ('''dpkg-buildpackage''')
@task
def clean ()
local ('''rm ../dcpman_*''')
def clean ():
with settings(warn_only=True):
local ('''rm ../dcpman_*''')
local ('''rm -r debian/dcpman.substvars debian/dcpman.prerm.debhelper\
debian/dcpman.postinst.debhelper debian/dcpman.debhelper.log debian/dcpman''')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment