@@ -24,11 +24,11 @@ type Str = Box<str>;
2424#[ derive( Parser , Debug ) ]
2525#[ command( version, about) ]
2626enum Commands {
27- /// Run an entire upgrade, calling pacman interally , needs sudo to run.
27+ /// Run an entire upgrade, calling pacman internally , needs sudo to run.
2828 Upgrade {
2929 server : Url ,
30- #[ arg( default_values_t = [ Str :: from ( "linux" ) , Str :: from ( "blas" ) , Str :: from ( "lapack" ) ] ) ]
31- blacklist : Vec < Box < str > > ,
30+ #[ arg( default_values_t = default_blacklist ( ) ) ]
31+ blacklist : Vec < Str > ,
3232 /// Use pacman for syncing the databases,
3333 /// if unset/by default uses delta-enabled sync.
3434 #[ arg( long) ]
@@ -97,6 +97,31 @@ enum Commands {
9797 } ,
9898}
9999
100+ fn default_blacklist ( ) -> Vec < Str > {
101+ // Bad compression
102+ let bad_compress = [ "linux" , "blas" , "lapack" ] ;
103+ // Too big for the server to handle
104+ let too_big = [
105+ "intel-oneapi-basekit" ,
106+ "hipblaslt" ,
107+ "ginkgo-hpc-cuda" ,
108+ "cuda" ,
109+ "nltk-data" ,
110+ "kicad-library-3d" ,
111+ "rocm-llvm" ,
112+ "texlive-doc" ,
113+ "rocblas" ,
114+ ] ;
115+
116+ let mut v: Vec < _ > = bad_compress
117+ . into_iter ( )
118+ . chain ( too_big. into_iter ( ) )
119+ . map ( Str :: from)
120+ . collect ( ) ;
121+ v. sort ( ) ;
122+ v
123+ }
124+
100125fn main ( ) {
101126 //TODO: if set use the environment variable, else check the command line for -v flags (-v=debug -vv=trace -q=warn -qq=error).
102127 // make a struct Cmd { verbosity: u8, task: Command}.
0 commit comments