deb/local: treat quilt's already-pushed status as success
quilt documents exit status 2 as "did not do anything", including pushing an already fully pushed stack. Treat that status as success when applying the series; any other non-zero status still aborts the build.
This commit is contained in:
1 parent
1af528f407
commit
1927e59156
1 file changed
+6
-1
+6
-1
@@ -1764,7 +1764,12 @@ fn apply_quilt_patches(
|
|||||||
)
|
)
|
||||||
.status()?;
|
.status()?;
|
||||||
if !status.success() {
|
if !status.success() {
|
||||||
return Err("Failed to apply quilt patches ('quilt push -a')".into());
|
// `quilt push -a` exits with 2 when the whole series is already
|
||||||
|
// applied (nothing left to do): that is success for our purpose.
|
||||||
|
// Any other failure is real (patch does not apply, series broken).
|
||||||
|
if status.code() != Some(2) {
|
||||||
|
return Err("Failed to apply quilt patches ('quilt push -a')".into());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in new issue
Block a user