summaryrefslogtreecommitdiff
path: root/buildscripts/packager.py
diff options
context:
space:
mode:
authorErnie Hershey <ernie.hershey@10gen.com>2013-11-30 11:44:54 -0500
committerErnie Hershey <ernie.hershey@10gen.com>2013-12-04 18:51:10 -0500
commit35c2c7aff4f88fd8bad0c318bee97cb3eabb1752 (patch)
treeb79ff290dc5375f2c76b5a028a031c169ae90945 /buildscripts/packager.py
parentdb57baaeaf3a629991b956bd1628cede5c779aa7 (diff)
downloadmongo-35c2c7aff4f88fd8bad0c318bee97cb3eabb1752.tar.gz
SERVER-11769 Only remove mongosniff when generating packages if it's there
Diffstat (limited to 'buildscripts/packager.py')
-rw-r--r--buildscripts/packager.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildscripts/packager.py b/buildscripts/packager.py
index a378d3eaa7f..5d10e2b4b09 100644
--- a/buildscripts/packager.py
+++ b/buildscripts/packager.py
@@ -339,7 +339,8 @@ def make_package(distro, arch, spec, srcdir):
# Remove the mongosniff binary due to libpcap dynamic
# linkage. FIXME: this removal should go away
# eventually.
- os.unlink(sdir+("%s/usr/bin/mongosniff"%BINARYDIR))
+ if os.path.exists(sdir+("%s/usr/bin/mongosniff"%BINARYDIR)):
+ os.unlink(sdir+("%s/usr/bin/mongosniff"%BINARYDIR))
return distro.make_pkg(arch, spec, srcdir)
def make_repo(repodir):