Quote:
Originally Posted by enorbet
I still have no idea how "--r otherroot" should work or even if it actually does and I find it terribly illogical.
|
I am not sure why you have so much trouble with this. As has already been stated,
upgradepkg does not have a "--root /otherroot" option, only
installpkg does. In
installpkg those two commands are interchangeable:
Code:
installpkg --root /otherroot package
ROOT=/otherroot installpkg package
If you use both of them
Code:
ROOT=/otherroot installpkg --root /otherroot package
then "--root /otherroot" will take precedence over "ROOT=/otherroot".
Here is the corresponding section in
installpkg:
Code:
146 # Parse options:
147 MODE=install # standard text-mode
148 while [ 0 ]; do
149 if [ "$1" = "-warn" -o "$1" = "--warn" ]; then
150 MODE=warn
151 shift 1
152 elif ...
...
184 elif [ "$1" = "-root" -o "$1" = "--root" ]; then
185 if [ "$2" = "" ]; then
186 usage
187 exit
188 fi
189 ROOT="$2"
190 shift 2
All this option does is to set the
ROOT variable, which you can also achieve by using "ROOT=/otherroot installpkg ..." in the first place.
HTH.
PS:
It should be "--root /otherroot" or "-root /otherroot" instead of "--r /otherrroot".