0cdaa744bcc46ffb8bbca70772e2f31781192a2a
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / exim / 0002-Don-t-make-backup-copies-of-installed-files.patch
1 If exim had already been installed, the install script makes backup
2 copies of the pre-existing executables with a ".0" suffix.
3
4 This leads to useless duplicated files on the target, so disable this
5 piece of code.
6
7 Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
8 ---
9  scripts/exim_install |   18 +++++++++---------
10  1 files changed, 9 insertions(+), 9 deletions(-)
11
12 diff --git a/scripts/exim_install b/scripts/exim_install
13 index 616ab3c..e68e7d5 100755
14 --- a/scripts/exim_install
15 +++ b/scripts/exim_install
16 @@ -344,15 +344,15 @@ while [ $# -gt 0 ]; do
17  
18    else
19      if ../scripts/newer ${name} ${BIN_DIRECTORY}/${name}; then
20 -      if [ -f ${BIN_DIRECTORY}/${name} ]; then
21 -        echo ${CP} ${BIN_DIRECTORY}/${name} ${BIN_DIRECTORY}/${name}.O
22 -        ${real} ${CP} ${BIN_DIRECTORY}/${name} ${BIN_DIRECTORY}/${name}.O
23 -        if [ $? -ne 0 ]; then
24 -          echo $com ""
25 -          echo $com "*** Exim installation ${ver}failed ***"
26 -          exit 1
27 -        fi
28 -      fi
29 +#      if [ -f ${BIN_DIRECTORY}/${name} ]; then
30 +#        echo ${CP} ${BIN_DIRECTORY}/${name} ${BIN_DIRECTORY}/${name}.O
31 +#        ${real} ${CP} ${BIN_DIRECTORY}/${name} ${BIN_DIRECTORY}/${name}.O
32 +#        if [ $? -ne 0 ]; then
33 +#          echo $com ""
34 +#          echo $com "*** Exim installation ${ver}failed ***"
35 +#          exit 1
36 +#        fi
37 +#      fi
38        echo ${CP} ${name} ${BIN_DIRECTORY}
39        ${real} ${CP} ${name} ${BIN_DIRECTORY}
40        if [ $? -ne 0 ]; then