mirror of
https://github.com/clearlinux/clr-avx-tools.git
synced 2026-09-04 04:41:37 +00:00
Make hardlink for original file
Save space in the rpm by making a hardlink. Signed-off-by: William Douglas <william.douglas@intel.com>
This commit is contained in:
+1
-2
@@ -4,7 +4,6 @@ import argparse
|
||||
import hashlib
|
||||
import itertools
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
from collections import OrderedDict
|
||||
|
||||
@@ -107,7 +106,7 @@ def copy_original(virtpath, targetdir, optimized_dir):
|
||||
return
|
||||
else:
|
||||
shasum = "other" + shasum
|
||||
shutil.copy2(filename, os.path.join(optimized_dir, shasum))
|
||||
os.link(filename, os.path.join(optimized_dir, shasum))
|
||||
|
||||
|
||||
def write_outfile(args, filemap):
|
||||
|
||||
Reference in New Issue
Block a user