mirror of
				https://github.com/arcan1s/ahriman.git
				synced 2025-11-03 23:33:41 +00:00 
			
		
		
		
	drop no-quiet option and change tree_create message error to warn
This commit is contained in:
		@ -60,8 +60,7 @@ def _parser() -> argparse.ArgumentParser:
 | 
			
		||||
    parser.add_argument("-l", "--lock", help="lock file", type=Path,
 | 
			
		||||
                        default=Path(tempfile.gettempdir()) / "ahriman.lock")
 | 
			
		||||
    parser.add_argument("--no-report", help="force disable reporting to web service", action="store_true")
 | 
			
		||||
    parser.add_argument("-q", "--quiet", help="force disable any logging", action=argparse.BooleanOptionalAction,
 | 
			
		||||
                        default=False)  # sometimes we would like to run not quiet even if it is disabled by default
 | 
			
		||||
    parser.add_argument("-q", "--quiet", help="force disable any logging", action="store_true")
 | 
			
		||||
    parser.add_argument("--unsafe", help="allow to run ahriman as non-ahriman user. Some actions might be unavailable",
 | 
			
		||||
                        action="store_true")
 | 
			
		||||
    parser.add_argument("-v", "--version", action="version", version=version.__version__)
 | 
			
		||||
 | 
			
		||||
@ -64,7 +64,7 @@ class Properties:
 | 
			
		||||
            check_user(self.paths.root)
 | 
			
		||||
            self.paths.tree_create()
 | 
			
		||||
        except UnsafeRun:
 | 
			
		||||
            self.logger.exception("root owner differs from the current user, skipping tree creation")
 | 
			
		||||
            self.logger.warning("root owner differs from the current user, skipping tree creation")
 | 
			
		||||
 | 
			
		||||
        self.ignore_list = configuration.getlist("build", "ignore_packages", fallback=[])
 | 
			
		||||
        self.pacman = Pacman(configuration)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user