Skip to content

Commit

Permalink
chore: Set default debian package priority to "optional" (#5942)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwr1 authored Jun 10, 2021
1 parent 4a5132f commit 8bf39ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/app-builder-lib/src/targets/fpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default class FpmTarget extends Target {
}

if (target === "deb") {
use((options as DebOptions).priority, it => args.push("--deb-priority", it!))
args.push("--deb-priority", (options as DebOptions).priority ?? "optional")
} else if (target === "rpm") {
if (synopsis != null) {
args.push("--rpm-summary", smarten(synopsis))
Expand Down
14 changes: 7 additions & 7 deletions test/snapshots/linux/debTest.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Object {
"License": "MIT",
"Maintainer": "Foo Bar <foo@example.com>",
"Package": "testapp",
"Priority": "extra",
"Priority": "optional",
"Section": "devel",
"Vendor": "Foo Bar <foo@example.com>",
}
Expand Down Expand Up @@ -157,7 +157,7 @@ Object {
"License": "MIT",
"Maintainer": "Foo Bar <foo@example.com>",
"Package": "testapp",
"Priority": "extra",
"Priority": "optional",
"Section": "devel",
"Vendor": "Foo Bar <foo@example.com>",
}
Expand Down Expand Up @@ -243,7 +243,7 @@ Object {
"License": "MIT",
"Maintainer": "Foo Bar <foo@example.com>",
"Package": "testapp",
"Priority": "extra",
"Priority": "optional",
"Section": "devel",
"Vendor": "Foo Bar <foo@example.com>",
}
Expand Down Expand Up @@ -329,7 +329,7 @@ Object {
"License": "MIT",
"Maintainer": "Foo Bar <foo@example.com>",
"Package": "testapp",
"Priority": "extra",
"Priority": "optional",
"Section": "devel",
"Vendor": "Foo Bar <foo@example.com>",
}
Expand Down Expand Up @@ -418,7 +418,7 @@ Object {
"License": "MIT",
"Maintainer": "Foo Bar <foo@example.com>",
"Package": "testapp",
"Priority": "extra",
"Priority": "optional",
"Section": "devel",
"Vendor": "Foo Bar <foo@example.com>",
}
Expand Down Expand Up @@ -515,7 +515,7 @@ Object {
"License": "MIT",
"Maintainer": "Foo Bar <foo@example.com>",
"Package": "testapp",
"Priority": "extra",
"Priority": "optional",
"Section": "devel",
"Vendor": "Foo Bar <foo@example.com>",
}
Expand Down Expand Up @@ -627,7 +627,7 @@ Object {
"License": "MIT",
"Maintainer": "Foo Bar <foo@example.com>",
"Package": "testapp",
"Priority": "extra",
"Priority": "optional",
"Section": "devel",
"Vendor": "Foo Bar <foo@example.com>",
}
Expand Down

0 comments on commit 8bf39ab

Please sign in to comment.