Skip to content

Commit

Permalink
Only run debian/rules clean for linux package
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Sep 13, 2023
1 parent 2d4879c commit e0b6967
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions scripts/pop-ci/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -710,12 +710,16 @@ sudo sbuild-update \
.and_then(check_status)?;
}

process::Command::new("fakeroot")
.arg("debian/rules")
.arg("clean")
.current_dir(&archive)
.status()
.and_then(check_status)?;
// Linux needs to have debian/rules clean run to build with the automatic
// version number
if repo_name == "linux" {
process::Command::new("fakeroot")
.arg("debian/rules")
.arg("clean")
.current_dir(&archive)
.status()
.and_then(check_status)?;
}

process::Command::new("debuild")
.arg("--preserve-envvar").arg("PATH")
Expand Down

0 comments on commit e0b6967

Please sign in to comment.