Skip to content

Commit e0b6967

Browse files
committed
Only run debian/rules clean for linux package
1 parent 2d4879c commit e0b6967

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

scripts/pop-ci/src/main.rs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -710,12 +710,16 @@ sudo sbuild-update \
710710
.and_then(check_status)?;
711711
}
712712

713-
process::Command::new("fakeroot")
714-
.arg("debian/rules")
715-
.arg("clean")
716-
.current_dir(&archive)
717-
.status()
718-
.and_then(check_status)?;
713+
// Linux needs to have debian/rules clean run to build with the automatic
714+
// version number
715+
if repo_name == "linux" {
716+
process::Command::new("fakeroot")
717+
.arg("debian/rules")
718+
.arg("clean")
719+
.current_dir(&archive)
720+
.status()
721+
.and_then(check_status)?;
722+
}
719723

720724
process::Command::new("debuild")
721725
.arg("--preserve-envvar").arg("PATH")

0 commit comments

Comments
 (0)