Skip to content

Commit 8bf39ab

Browse files
authored
chore: Set default debian package priority to "optional" (#5942)
1 parent 4a5132f commit 8bf39ab

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/app-builder-lib/src/targets/fpm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export default class FpmTarget extends Target {
149149
}
150150

151151
if (target === "deb") {
152-
use((options as DebOptions).priority, it => args.push("--deb-priority", it!))
152+
args.push("--deb-priority", (options as DebOptions).priority ?? "optional")
153153
} else if (target === "rpm") {
154154
if (synopsis != null) {
155155
args.push("--rpm-summary", smarten(synopsis))

test/snapshots/linux/debTest.js.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Object {
8282
"License": "MIT",
8383
"Maintainer": "Foo Bar <[email protected]>",
8484
"Package": "testapp",
85-
"Priority": "extra",
85+
"Priority": "optional",
8686
"Section": "devel",
8787
"Vendor": "Foo Bar <[email protected]>",
8888
}
@@ -157,7 +157,7 @@ Object {
157157
"License": "MIT",
158158
"Maintainer": "Foo Bar <[email protected]>",
159159
"Package": "testapp",
160-
"Priority": "extra",
160+
"Priority": "optional",
161161
"Section": "devel",
162162
"Vendor": "Foo Bar <[email protected]>",
163163
}
@@ -243,7 +243,7 @@ Object {
243243
"License": "MIT",
244244
"Maintainer": "Foo Bar <[email protected]>",
245245
"Package": "testapp",
246-
"Priority": "extra",
246+
"Priority": "optional",
247247
"Section": "devel",
248248
"Vendor": "Foo Bar <[email protected]>",
249249
}
@@ -329,7 +329,7 @@ Object {
329329
"License": "MIT",
330330
"Maintainer": "Foo Bar <[email protected]>",
331331
"Package": "testapp",
332-
"Priority": "extra",
332+
"Priority": "optional",
333333
"Section": "devel",
334334
"Vendor": "Foo Bar <[email protected]>",
335335
}
@@ -418,7 +418,7 @@ Object {
418418
"License": "MIT",
419419
"Maintainer": "Foo Bar <[email protected]>",
420420
"Package": "testapp",
421-
"Priority": "extra",
421+
"Priority": "optional",
422422
"Section": "devel",
423423
"Vendor": "Foo Bar <[email protected]>",
424424
}
@@ -515,7 +515,7 @@ Object {
515515
"License": "MIT",
516516
"Maintainer": "Foo Bar <[email protected]>",
517517
"Package": "testapp",
518-
"Priority": "extra",
518+
"Priority": "optional",
519519
"Section": "devel",
520520
"Vendor": "Foo Bar <[email protected]>",
521521
}
@@ -627,7 +627,7 @@ Object {
627627
"License": "MIT",
628628
"Maintainer": "Foo Bar <[email protected]>",
629629
"Package": "testapp",
630-
"Priority": "extra",
630+
"Priority": "optional",
631631
"Section": "devel",
632632
"Vendor": "Foo Bar <[email protected]>",
633633
}

0 commit comments

Comments
 (0)