diff options
author | 2014-06-23 14:56:17 -0700 | |
---|---|---|
committer | 2014-06-23 15:05:18 -0700 | |
commit | 96dc776787d23238a4e8dfedc4514911a3d84c37 (patch) | |
tree | a5f1db81be89ff633de8e9f968b6aee5b3073746 | |
parent | gen_package: print full paths to pkgs/cache output (diff) | |
download | genkernel-96dc776787d23238a4e8dfedc4514911a3d84c37.tar.gz genkernel-96dc776787d23238a4e8dfedc4514911a3d84c37.tar.bz2 genkernel-96dc776787d23238a4e8dfedc4514911a3d84c37.zip |
gen_cmdline: fix pkg path getting stuff deleted
If you pass --minkernpackage=X, --modulespackage=X or --kerncache=X with
a relative path, then it's creates the output file in a temporary
working dir that is later removed during cleanup.
Resolve the paths during argument parsing to prevent this.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-x | gen_cmdline.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gen_cmdline.sh b/gen_cmdline.sh index ca6cbcf9..6ef6ae0d 100755 --- a/gen_cmdline.sh +++ b/gen_cmdline.sh @@ -501,14 +501,17 @@ parse_cmdline() { ;; --minkernpackage=*) CMD_MINKERNPACKAGE=`parse_opt "$*"` + [ ${CMD_MINKERNPACKAGE:0:1} != / ] && CMD_MINKERNPACKAGE=$PWD/$CMD_MINKERNPACKAGE print_info 2 "MINKERNPACKAGE: ${CMD_MINKERNPACKAGE}" ;; --modulespackage=*) CMD_MODULESPACKAGE=`parse_opt "$*"` + [ ${CMD_MODULESPACKAGE:0:1} != / ] && CMD_MODULESPACKAGE=$PWD/$CMD_MODULESPACKAGE print_info 2 "MODULESPACKAGE: ${CMD_MODULESPACKAGE}" ;; --kerncache=*) CMD_KERNCACHE=`parse_opt "$*"` + [ ${CMD_KERNCACHE:0:1} != / ] && CMD_KERNCACHE=$PWD/$CMD_KERNCACHE print_info 2 "KERNCACHE: ${CMD_KERNCACHE}" ;; --kernname=*) |