Skip to content

Commit

Permalink
product.img buildstamp should override distribution buildstamp (#1240…
Browse files Browse the repository at this point in the history
…238)

config.read() reads all the files in the order given, so later ones with
the same keys override the earlier ones. This changes the order so that
the product.img .buildstamp can be used for re-branding.

Resolves: rhbz#1240238
  • Loading branch information
bcl committed Aug 12, 2015
1 parent 277c183 commit 9de75d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyanaconda/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
config.set("Main", "Version", os.environ.get("ANACONDA_PRODUCTVERSION", "bluesky"))

# Now read in the .buildstamp file, wherever it may be.
config.read(["/tmp/product/.buildstamp", "/.buildstamp", os.environ.get("PRODBUILDPATH", "")])
config.read(["/.buildstamp", "/tmp/product/.buildstamp", os.environ.get("PRODBUILDPATH", "")])

# Set up some variables we import throughout, applying a couple transforms as necessary.
bugUrl = config.get("Main", "BugURL")
Expand Down

0 comments on commit 9de75d8

Please sign in to comment.