mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
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:
@@ -93,7 +93,7 @@ if __name__ == "__main__":
|
|||||||
if options.copydir:
|
if options.copydir:
|
||||||
copypath = os.path.join(options.copydir, path.replace(options.parentdir, '', 1))
|
copypath = os.path.join(options.copydir, path.replace(options.parentdir, '', 1))
|
||||||
mkdirhier(os.path.split(copypath)[0])
|
mkdirhier(os.path.split(copypath)[0])
|
||||||
os.system("mv " + path + " " + copypath)
|
os.system("cp " + path + " " + copypath)
|
||||||
found = True
|
found = True
|
||||||
else:
|
else:
|
||||||
if cache[path]['ts'] != fstamp[stat.ST_MTIME] or cache[path]['size'] != fstamp[stat.ST_SIZE]:
|
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:
|
if options.copydir:
|
||||||
copypath = os.path.join(options.copydir, path.replace(options.parentdir, '', 1))
|
copypath = os.path.join(options.copydir, path.replace(options.parentdir, '', 1))
|
||||||
mkdirhier(os.path.split(copypath)[0])
|
mkdirhier(os.path.split(copypath)[0])
|
||||||
os.system("mv " + path + " " + copypath)
|
os.system("cp " + path + " " + copypath)
|
||||||
found = True
|
found = True
|
||||||
|
|
||||||
if options.update:
|
if options.update:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
DESCRIPTION = "Helper script for packaged-staging.bbclass"
|
DESCRIPTION = "Helper script for packaged-staging.bbclass"
|
||||||
PR = "r1"
|
PR = "r2"
|
||||||
|
|
||||||
SRC_URI = "file://stage-manager"
|
SRC_URI = "file://stage-manager"
|
||||||
LICENSE = "GPLv2"
|
LICENSE = "GPLv2"
|
||||||
|
|||||||
Reference in New Issue
Block a user