diff --git a/debian/changelog b/debian/changelog index fddb8d2..8c97d17 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +marqdo (2.7.0-1ppa2) noble; urgency=medium + + * Repair engineering plugin compatibility for this 2.7.0 release. + * Keep the accepted upstream orig archive; carry the fix as a quilt patch. + + -- Marqdo Maintainers Tue, 10 Nov 2026 17:53:03 +0800 + marqdo (2.7.0-1ppa1) noble; urgency=medium * Release 2.7.0; see the reviewed upstream CHANGELOG. diff --git a/debian/patches/engineering-stable-option.patch b/debian/patches/engineering-stable-option.patch new file mode 100644 index 0000000..b2dd935 --- /dev/null +++ b/debian/patches/engineering-stable-option.patch @@ -0,0 +1,18 @@ +Description: Use stable Option map_or in the engineering release boundary +Author: Marqdo Maintainers +Forwarded: not-needed +Last-Update: 2026-11-10 + +diff --git a/plugins/engineering/src/lib.rs b/plugins/engineering/src/lib.rs +index 6891f01..f0c5ffc 100644 +--- a/plugins/engineering/src/lib.rs ++++ b/plugins/engineering/src/lib.rs +@@ -283,7 +283,7 @@ fn r2_settings(root:&Path)->Result,String> { + } + } + for k in ["R2_ENDPOINT","R2_BUCKET","R2_ACCESS_KEY_ID","R2_SECRET_ACCESS_KEY"] { +- if settings.get(k).is_none_or(String::is_empty) {return Err(format!("missing {k}; configure ~/.marqdo/r2.env"));} ++ if settings.get(k).map_or(true, String::is_empty) {return Err(format!("missing {k}; configure ~/.marqdo/r2.env"));} + } + Ok(settings) + } diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..d1506c6 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +engineering-stable-option.patch diff --git a/plugins/engineering/src/lib.rs b/plugins/engineering/src/lib.rs index 6891f01..f0c5ffc 100644 --- a/plugins/engineering/src/lib.rs +++ b/plugins/engineering/src/lib.rs @@ -283,7 +283,7 @@ fn r2_settings(root:&Path)->Result,String> { } } for k in ["R2_ENDPOINT","R2_BUCKET","R2_ACCESS_KEY_ID","R2_SECRET_ACCESS_KEY"] { - if settings.get(k).is_none_or(String::is_empty) {return Err(format!("missing {k}; configure ~/.marqdo/r2.env"));} + if settings.get(k).map_or(true, String::is_empty) {return Err(format!("missing {k}; configure ~/.marqdo/r2.env"));} } Ok(settings) }