[SERVER-11769] Only remove mongosniff when generating packages if it's there Created: 18/Nov/13  Updated: 11/Jul/16  Resolved: 04/Dec/13

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 2.5.4
Fix Version/s: 2.5.5

Type: Bug Priority: Major - P3
Reporter: Ernie Hershey Assignee: Ernie Hershey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: Linux
Participants:

 Description   

When running packager.py, if mongosniff isn't in the downloaded tarball, the script throws a fatal error. It should just move on.

Traceback (most recent call last):
  File "packager.py", line 638, in <module>
    main(sys.argv)
  File "packager.py", line 176, in main
    repos.append(make_package(distro, arch, spec, srcdir))
  File "packager.py", line 343, in make_package
    os.unlink(sdir+("%s/usr/bin/mongosniff"%BINARYDIR))
OSError: [Errno 2] No such file or directory: 'dst/i686/debian-sysvinit/mongodb-org-unstable-2.5.4/BINARIES/usr/bin/mongosniff'
[ubuntu@distro-deb2 buildscripts]$



 Comments   
Comment by Githook User [ 04/Dec/13 ]

Author:

{u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

Message: SERVER-11769 Only remove mongosniff when generating packages if it's there
Branch: master
https://github.com/mongodb/mongo/commit/35c2c7aff4f88fd8bad0c318bee97cb3eabb1752

Generated at Thu Feb 08 03:26:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.