2 Commits
2.6.1 ... 2.6.2

Author SHA1 Message Date
Clayton Craft
4e771ab96f osutil: mergeusr: don't rewrite /usr/sbin to /usr/bin (MR 58)
Alpine TSC decided to keep /usr/sbin for now, so let's not break paths
to stuff under /usr/sbin in the meantime.
2024-11-13 09:21:59 -08:00
Clayton Craft
4d7dd79bcf deviceinfo: test that inline-comments work (MR 57)
see: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/5766
2024-11-13 00:49:34 -08:00
3 changed files with 3 additions and 8 deletions

View File

@@ -40,11 +40,6 @@ func MergeUsr(file string) string {
}
}
// Convert /usr/sbin --> /usr/bin
if part, found := strings.CutPrefix(file, "/usr/sbin"); found {
file = filepath.Join("/usr/bin/", part)
}
return file
}

View File

@@ -18,11 +18,11 @@ func TestMergeUsr(t *testing.T) {
},
{
in: "/sbin/foo",
expected: "/usr/bin/foo",
expected: "/usr/sbin/foo",
},
{
in: "/usr/sbin/foo",
expected: "/usr/bin/foo",
expected: "/usr/sbin/foo",
},
{
in: "/usr/bin/foo",

View File

@@ -4,4 +4,4 @@ deviceinfo_uboot_boardname="foobar-bazz"
deviceinfo_initfs_compression="zstd:--foo=1 -T0 --bar=bazz"
# empty option
deviceinfo_initfs_extra_compression=""
deviceinfo_create_initfs_extra="true"
deviceinfo_create_initfs_extra="true" # in-line comment that should be ignored