[jhbuild/wip/path-env: 20/20] config: detect lib64 directory and abort



commit 135e34ff9a8fd8e6c97bd97fdd09d932f5e534f5
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Mar 13 15:15:52 2014 -0400

    config: detect lib64 directory and abort
    
    Things are likely to go off the rails pretty quickly if you try to use
    new lib64-free jhbuild after having installed some packages in lib64
    using an older jhbuild version.
    
    Detect the existence of a lib64 directory on startup and abort with a
    helpful message.

 jhbuild/config.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/jhbuild/config.py b/jhbuild/config.py
index 4fb0dd2..b92e12d 100644
--- a/jhbuild/config.py
+++ b/jhbuild/config.py
@@ -334,6 +334,12 @@ class Config:
                 raise FatalError(
                         _('working directory (%s) can not be created') % self.top_builddir)
 
+        if os.path.exists(os.path.join(self.prefix, 'lib64')):
+            raise FatalError(_("Your install prefix contains a 'lib64' directory, which is no longer "
+                               "supported by jhbuild.  This is likely the result of a previous build with an 
"
+                               "older version of jhbuild or of a broken package.  Please consider removing "
+                               "your install and checkout directories and starting fresh."))
+
     def apply_env_prepends(self):
         ''' handle environment prepends ... '''
         for envvar in env_prepends.keys():


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]