File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11use std:: fs:: File ;
22use std:: io:: { BufRead , BufReader , BufWriter , Write } ;
3- use std:: process:: { Command , Stdio } ;
3+ use std:: process:: Command ;
44
55use anyhow:: { Context , Result } ;
66use camino:: { Utf8Path , Utf8PathBuf } ;
@@ -76,6 +76,7 @@ fn gitrev(sh: &Shell) -> Result<String> {
7676
7777/// Return a string formatted version of the git commit timestamp, up to the minute
7878/// but not second because, well, we're not going to build more than once a second.
79+ #[ allow( dead_code) ]
7980#[ context( "Finding git timestamp" ) ]
8081fn git_timestamp ( sh : & Shell ) -> Result < String > {
8182 let ts = cmd ! ( sh, "git show -s --format=%ct" ) . read ( ) ?;
@@ -236,6 +237,7 @@ fn impl_srpm(sh: &Shell) -> Result<Utf8PathBuf> {
236237}
237238
238239fn package_srpm ( sh : & Shell ) -> Result < ( ) > {
240+ let _targetdir = get_target_dir ( ) ?;
239241 let srpm = impl_srpm ( sh) ?;
240242 println ! ( "Generated: {srpm}" ) ;
241243 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments