diff options
author | Colin Guthrie <colin@mageia.org> | 2014-05-27 09:28:43 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2014-05-27 09:28:43 +0100 |
commit | cfdb6b3eb9f1638946ea9cbbcad06117d51b9b2b (patch) | |
tree | 1c7dc346d9c8b7e62702c65a2a599961a638bcf5 | |
parent | d3fb381cf8b5c99e7526c9782180e8554c93ae71 (diff) | |
download | mgarepo-cfdb6b3eb9f1638946ea9cbbcad06117d51b9b2b.tar mgarepo-cfdb6b3eb9f1638946ea9cbbcad06117d51b9b2b.tar.gz mgarepo-cfdb6b3eb9f1638946ea9cbbcad06117d51b9b2b.tar.bz2 mgarepo-cfdb6b3eb9f1638946ea9cbbcad06117d51b9b2b.tar.xz mgarepo-cfdb6b3eb9f1638946ea9cbbcad06117d51b9b2b.zip |
Use hardlinks when importing (can help speed up process for large SOURCES)
The cp command supports the -l option since Mageia 1 so it's fairly
safe to use this.
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | MgaRepo/rpmutil.py | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -1,3 +1,4 @@ +- Use hardlinks when importing (can help speed up process for large SOURCES) - Added aliases for commit (ci) and checkout (co) * 1.10.6 diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py index f0d413b..325c0ce 100644 --- a/MgaRepo/rpmutil.py +++ b/MgaRepo/rpmutil.py @@ -244,8 +244,8 @@ def put_srpm(srpmfile, markrelease=False, striplog=True, branch=None, svn.remove(entrypath) # Copy all files - execcmd("cp -rf", uspecsdir, currentdir) - execcmd("cp -rf", usourcesdir, currentdir) + execcmd("cp -rlf", uspecsdir, currentdir) + execcmd("cp -rlf", usourcesdir, currentdir) # Add new entries for entry in [x for x in uspecsentries |