Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <sascha-org-sugar-git@silbe.org>2009-07-14 11:54:34 (GMT)
committer Sascha Silbe <sascha-org-sugar-git@silbe.org>2009-07-14 11:54:34 (GMT)
commitdd918bbd1537218aa13380975ec59582c4468240 (patch)
tree795689d112b26cd2b7945af51bed2f24db7994da
parenta43723824a1d146884165f079b6988fd941f246a (diff)
print more sensible error for unsupported distros
-rw-r--r--sjhbuild/sysdeps.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sjhbuild/sysdeps.py b/sjhbuild/sysdeps.py
index 1b0366d..eaeeb9b 100644
--- a/sjhbuild/sysdeps.py
+++ b/sjhbuild/sysdeps.py
@@ -72,8 +72,10 @@ def _parse_dependencies(dname, dversion):
# check whether we have a file matching the exact distro version
if not [name for name in filenames if name.endswith(suffixes[-1])] :
- # will break for unknown distros, but that's fine
- # (=> bug report => add support for distro)
+ if dname not in _unstable_names :
+ sys.stderr.write("ERROR: %r is not a supported distro. If you think it is sufficiently recent to contain everything the latest development version of Sugar needs and would like to see it supported, please file a ticket at dev.sugarlabs.org.\n" % (dname,))
+ return []
+
uversion = _unstable_names[dname]
if (dversion == uversion) :
# no config for unstable