summaryrefslogtreecommitdiff
path: root/packages/brpm
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-25 21:13:37 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-25 21:13:37 -0700
commitb40acd43cd8a7849887147c293d41f0ee5e1145c (patch)
treeec0d8def6ac969fa2899995966003736e0d643c1 /packages/brpm
parentba39827bbd6beacb6360844854760dda0687f408 (diff)
downloadvyos-cloud-init-b40acd43cd8a7849887147c293d41f0ee5e1145c.tar.gz
vyos-cloud-init-b40acd43cd8a7849887147c293d41f0ee5e1145c.zip
Use move and not util copy
Diffstat (limited to 'packages/brpm')
-rwxr-xr-xpackages/brpm4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/brpm b/packages/brpm
index 241f08fd..febbfb5e 100755
--- a/packages/brpm
+++ b/packages/brpm
@@ -145,7 +145,7 @@ def main():
# Archive the code
(revno, version, archive_fn) = archive_code()
real_archive_fn = os.path.join(arc_dir, os.path.basename(archive_fn))
- shutil.copy(archive_fn, real_archive_fn)
+ shutil.move(archive_fn, real_archive_fn)
info("Archived code to %s" % (real_archive_fn))
# Form the spec file to be used
@@ -175,7 +175,7 @@ def main():
for fn in globs:
n = os.path.basename(fn)
tgt_fn = os.path.join(os.getcwd(), n)
- util.copy(fn, tgt_fn)
+ shutil.move(fn, tgt_fn)
info("Copied %s to %s" % (n, tgt_fn))
return 0