From dd918bbd1537218aa13380975ec59582c4468240 Mon Sep 17 00:00:00 2001 From: Sascha Silbe Date: Tue, 14 Jul 2009 11:54:34 +0000 Subject: print more sensible error for unsupported distros --- 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 -- cgit v0.9.1