stage-manager: copy files, don't move them

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3233 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie 2007-11-25 15:39:51 +00:00
parent c0adbcbc1c
commit 5d60f712ae
2 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ if __name__ == "__main__":
if options.copydir:
copypath = os.path.join(options.copydir, path.replace(options.parentdir, '', 1))
mkdirhier(os.path.split(copypath)[0])
os.system("mv " + path + " " + copypath)
os.system("cp " + path + " " + copypath)
found = True
else:
if cache[path]['ts'] != fstamp[stat.ST_MTIME] or cache[path]['size'] != fstamp[stat.ST_SIZE]:
@ -104,7 +104,7 @@ if __name__ == "__main__":
if options.copydir:
copypath = os.path.join(options.copydir, path.replace(options.parentdir, '', 1))
mkdirhier(os.path.split(copypath)[0])
os.system("mv " + path + " " + copypath)
os.system("cp " + path + " " + copypath)
found = True
if options.update:

View File

@ -1,5 +1,5 @@
DESCRIPTION = "Helper script for packaged-staging.bbclass"
PR = "r1"
PR = "r2"
SRC_URI = "file://stage-manager"
LICENSE = "GPLv2"