diff options
author | Francisco Soto | 2018-09-21 21:42:58 -0700 |
---|---|---|
committer | Francisco Soto | 2018-09-21 21:44:14 -0700 |
commit | d3237463507271353b8081ab3dfe616b83f37efc (patch) | |
tree | 9f81d935b20d1dbdd8d261aeac1ad3740e84e193 /main.patch | |
parent | a9b6911e836bd8e2d6435fabc122b274aab65130 (diff) | |
download | aur-d3237463507271353b8081ab3dfe616b83f37efc.tar.gz |
Update to version 111-2.
Daemon args are broken. Submitted patch upstream, added patch here while it gets
addressed.
Diffstat (limited to 'main.patch')
-rw-r--r-- | main.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/main.patch b/main.patch new file mode 100644 index 000000000000..fda09c86b85e --- /dev/null +++ b/main.patch @@ -0,0 +1,38 @@ +--- src/system76/src/main.rs 2018-09-21 21:38:37.639982440 -0700 ++++ src/system76/src/main.rs.new 2018-09-21 21:38:34.933315808 -0700 +@@ -110,22 +110,21 @@ + ) + ) + .get_matches(); +- +- if let Err(why) = logging::setup_logging( +- if matches.is_present("verbose") { +- LevelFilter::Debug +- } else if matches.is_present("quiet") { +- LevelFilter::Off +- } else { +- LevelFilter::Info +- } +- ) { +- eprintln!("failed to set up logging: {}", why); +- process::exit(1); +- } + + let res = match matches.subcommand() { +- ("daemon", Some(_matches)) => { ++ ("daemon", Some(matches)) => { ++ if let Err(why) = logging::setup_logging( ++ if matches.is_present("verbose") { ++ LevelFilter::Debug ++ } else if matches.is_present("quiet") { ++ LevelFilter::Off ++ } else { ++ LevelFilter::Info ++ } ++ ) { ++ eprintln!("failed to set up logging: {}", why); ++ process::exit(1); ++ } + if unsafe { libc::geteuid() } == 0 { + daemon::daemon(matches.is_present("experimental")) + } else { |