Ok, I finally solved the problem (if right or wrong, I don't know).
Attached you'll find the patch, please let me know.
This way files on which current user has no permissions should be
correctly managed, as well as globbing (which sudo prevents from
working, since the command is first parsed by shell, and the permission
problem arises).
Bye
--- trunk/Compile/bin/Compile 2008-05-09 21:04:59.000000000 +0200
+++ trunk.new/Compile/bin/Compile 2008-05-09 21:11:52.000000000 +0200
@@ -1416,10 +1416,12 @@
dst=`echo $i | cut -d: -f2-`
fulldst="$installprefix/$dst"
$sudo_exec mkdir -p $(dirname "$fulldst")
- if [ -d "$src" -a -d "$fulldst" ]
- then $sudo_exec cp -R "$src"/* "$fulldst"
- else $sudo_exec cp -R $src "$fulldst"
- fi
+ $sudo_exec sh -c "
+ if [ -d $src -a -d $fulldst ]
+ then cp -R $src/* $fulldst
+ else cp -R $src $fulldst
+ fi
+ "
done
do_symlink --no-make "$appname" "$versionnumber" || wrap_fail "Installation
failed."
check_direct_dependencies
_______________________________________________
gobolinux-devel mailing list
[email protected]
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel