lazbuild prefers config path in lazarus.cfg over command line argument
Original Reporter info from Mantis: Andre Schulze
-
Reporter name: André Schulze
Original Reporter info from Mantis: Andre Schulze
- Reporter name: André Schulze
Description:
When there is a lazarus.cfg with a reference to a config in form of:
"--primary-config-path=IDEpath"
and lazbuild is called with
"--pcp=LAZBUILDpath"
the content of lazarus.cfg has higher priority. This only occours with the long and short forms of this parameter are mixed. If both lazarus.cfg and the command line parameter are given as "--primary-config-path" the behaviour is as expected.
Steps to reproduce:
-
If no lazarus.cfg is present in the IDE directory create this file and let it point to a valid config dir (--primary-config-path=IDEpath).
-
make a backup of your packagefiles.xml
-
test "lazbuild.exe --pcp=e:\branch2\laz_config --add-package-link ..."
-
look into packagefiles.xml of the file pointed to by lazarus.cfg
you will see the added package or if it was already present it will have its LastUsed node changed
Mantis conversion info:
- Mantis ID: 34069
- Build: 57972
- Platform: Windows
- Version: 1.8.4
- Fixed in version: 1.10
- Fixed in revision: 58696 (#9c5d04d5)
- Target version: 1.10