Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 763600 Details for
Bug 832032
app-text/build-docbook-catalog: Checks wrong file when installling to chroot
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add missing ${ROOT} to path
0001-Honour-ROOT-when-deleting-existing-catalog.patch (text/plain), 981 bytes, created by
Marvin Schmidt
on 2022-01-25 11:11:38 UTC
(
hide
)
Description:
add missing ${ROOT} to path
Filename:
MIME Type:
Creator:
Marvin Schmidt
Created:
2022-01-25 11:11:38 UTC
Size:
981 bytes
patch
obsolete
>From 5cde29367c06f78dbcc56eefe9d88294da1655c2 Mon Sep 17 00:00:00 2001 >From: Marvin Schmidt <marv@exherbo.org> >Date: Thu, 20 Jan 2022 10:06:13 +0100 >Subject: [PATCH] Honour ROOT when deleting existing catalog > >The condition checked for `${ROOT}${ROOTCATALOG}`, but then deleted >the catalog file outside of ROOT (`${ROOTCATALOG}`). Fix this by adding >the missing `${ROOT}` >--- > build-docbook-catalog | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/build-docbook-catalog b/build-docbook-catalog >index 1b4ccf3..cee9af0 100755 >--- a/build-docbook-catalog >+++ b/build-docbook-catalog >@@ -173,7 +173,7 @@ create_catalogs() { > > # Initialize catalogs if they don't exist or are corrupt. > if [[ -r ${ROOT}${ROOTCATALOG} ]] && ! xmllint "${ROOT}${ROOTCATALOG}" >&/dev/null ; then >- rm -f "${ROOTCATALOG}" >+ rm -f "${ROOT}${ROOTCATALOG}" > echo "Deleting corrupt ${ROOT}${ROOTCATALOG} and starting over" > fi > if [[ ! -r ${ROOT}${ROOTCATALOG} ]] ; then >-- >2.34.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 832032
: 763600