spack repo add: fix error message when `packages' directory is missing (#11031)
This commit is contained in:
		
				
					committed by
					
						
						Peter Scheibel
					
				
			
			
				
	
			
			
			
						parent
						
							229ed5c228
						
					
				
				
					commit
					4793242158
				
			@@ -720,7 +720,7 @@ def check(condition, msg):
 | 
			
		||||
 | 
			
		||||
        self.packages_path = os.path.join(self.root, packages_dir_name)
 | 
			
		||||
        check(os.path.isdir(self.packages_path),
 | 
			
		||||
              "No directory '%s' found in '%s'" % (repo_config_name, root))
 | 
			
		||||
              "No directory '%s' found in '%s'" % (packages_dir_name, root))
 | 
			
		||||
 | 
			
		||||
        # Read configuration and validate namespace
 | 
			
		||||
        config = self._read_config()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user