Description: Disable the --development option on plainbox-trusted-launcher-1
 The --development option allows the trusted launcher to bypass system
 security and load content from locations controlled by the user. It has
 been disabled by the Debian packaging, in agreement with the upstream
 developers (actually upstream wrote this patch). Until a better
 solution is found this patch needs to be maintained for every release.
 .
 Note, the patch is marked as "not-needed" so that nobody just forwards
 it upstream as it obviously cannot be applied there.
Author: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Origin: upstream
Bug-Ubuntu: https://bugs.launchpad.net/checkbox/+bug/1262809
Forwarded: not-needed
Last-Update: 2014-03-18

--- a/plainbox/impl/secure/launcher1.py
+++ b/plainbox/impl/secure/launcher1.py
@@ -31,7 +31,6 @@
 from plainbox.i18n import gettext as _
 from plainbox.impl.job import JobDefinition
 from plainbox.impl.job import JobOutputTextSource
-from plainbox.impl.providers.special import CheckBoxSrcProvider
 from plainbox.impl.secure.providers.v1 import all_providers
 from plainbox.impl.secure.rfc822 import load_rfc822_records, RFC822SyntaxError
 
@@ -242,9 +241,10 @@
     launcher = TrustedLauncher()
     # Feed jobs into the trusted launcher
     if ns.development:
-        # Use the checkbox source provider if requested via --development
-        launcher.add_job_list(
-            CheckBoxSrcProvider().get_builtin_jobs())
+        # NOTE: the --development option is insecure and has been disabled by
+        # Debian packaging.
+        parser.error(_("--development is disabled, see: {0}").format(
+            'https://bugs.launchpad.net/checkbox/+bug/1262809'))
     else:
         # Siphon all jobs from all secure providers otherwise
         all_providers.load()
