Files
macports-ports/devel/osc/files/patch-build-disable.diff

16 lines
807 B
Diff

diff --git osc/commandline.py osc/commandline.py
index b7c19bc6..326e13a8 100644
--- osc/commandline.py
+++ osc/commandline.py
@@ -7236,6 +7236,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
# OSC_BUILD_ROOT overrides the setting of build-root.
# OSC_PACKAGECACHEDIR overrides the setting of packagecachedir.
"""
+
+ print('Error: build command has been disabled for this platform, cannot run local builds', file=sys.stderr)
+ return 1
+
if which(conf.config['build-cmd']) is None:
print('Error: build (\'%s\') command not found' % conf.config['build-cmd'], file=sys.stderr)
print('Install the build package from http://download.opensuse.org/repositories/openSUSE:/Tools/', file=sys.stderr)