summaryrefslogtreecommitdiffstats
path: root/scripts/buildinstall
diff options
context:
space:
mode:
authorJeroen van Meeuwen <kanarip@fedoraunity.org>2009-02-17 09:52:32 -0500
committerJeremy Katz <katzj@redhat.com>2009-02-17 09:52:32 -0500
commit04eb66949667baf1a180b3f381357a3ba405eb1e (patch)
tree14ccea5ef6d5c0d7892d1b2a7ba9e506a0cfeeb0 /scripts/buildinstall
parent74718cc4c91c51231f016ee094478a4349bbb30d (diff)
downloadanaconda-04eb66949667baf1a180b3f381357a3ba405eb1e.tar.gz
anaconda-04eb66949667baf1a180b3f381357a3ba405eb1e.tar.xz
anaconda-04eb66949667baf1a180b3f381357a3ba405eb1e.zip
Let's use the product string for a brandpackage name.
Caveat #1: If the brand package doesn't exist, buildinstall will fail Caveat #2: If the brand package has uppercase characters in it's name, it needs to provide ${brand}-{release,logos} in lowercase or yum thinks the package doesn't exist and buildinstall will fail An additional patch may be necessary to: 1) check for ${brand}-{release,logos} 2) if those do not exist, fall back by setting the brand to "generic" This will need to happen *after* the YUM configuration file has been written, but before upd-instroot is executed.
Diffstat (limited to 'scripts/buildinstall')
-rwxr-xr-xscripts/buildinstall4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/buildinstall b/scripts/buildinstall
index 818959d7f..3c59a3157 100755
--- a/scripts/buildinstall
+++ b/scripts/buildinstall
@@ -124,6 +124,10 @@ if [ ! -d "$OUTPUT" ]; then
mkdir -p $OUTPUT
fi
+# The first -release and -logos package we are going to look for is the lowercase
+# equivalent of the PRODUCTSTR
+export brandpkgname="`echo $PRODUCTSTR | tr '[:upper:]' '[:lower:]'`"
+
BUILDINSTDIR=$(mktemp -d ${TMPDIR:-/tmp}/buildinstall.tree.XXXXXX)
TREEDIR=$(mktemp -d ${TMPDIR:-/tmp}/treedir.XXXXXX)
CACHEDIR=$(mktemp -d ${TMPDIR:-/tmp}/yumcache.XXXXXX)