summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2014-06-23 12:36:47 +0200
committerEdward Hervey <bilboed@bilboed.com>2014-06-23 12:38:00 +0200
commitbc5646c36def517741ae519ab8ea534bc8297270 (patch)
tree68e9ff6902ec51b09d7e901978cd3acc080c4a39
parentbc828d55a173a721eae6d195380988979bc56e4f (diff)
packager: cross-compiling for windows temporary fix
Until we manager to build .msi from linux, package the resulting code into a dist tarball for testing
-rw-r--r--cerbero/packages/packager.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/cerbero/packages/packager.py b/cerbero/packages/packager.py
index 89323233..ea6fb1f6 100644
--- a/cerbero/packages/packager.py
+++ b/cerbero/packages/packager.py
@@ -16,7 +16,7 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
-from cerbero.config import Distro
+from cerbero.config import Distro, Platform
from cerbero.errors import FatalError
from cerbero.utils import _
from cerbero.utils import messages as m
@@ -46,6 +46,10 @@ class Packager (object):
"version %s, using generic packager for distro %s" % (v, d)))
v = None
+ if (d == Distro.WINDOWS and config.platform == Platform.LINUX):
+ m.warning("Cross-compiling for Windows, overriding Packager")
+ d = Distro.NONE
+
return _packagers[d][v](config, package, store)