aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/loudmouth
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2017-04-12 15:18:25 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2017-04-18 14:21:49 +0200
commit711eaef2d93eb80962a3206213246f4310e81c28 (patch)
tree2d83889b06e62f68fb492e6e881d6417e6cc27d1 /meta-oe/recipes-connectivity/loudmouth
parent36e96e4defaa79a3f5c76e8a8293a8098e47bd51 (diff)
downloadmeta-openembedded-contrib-711eaef2d93eb80962a3206213246f4310e81c28.tar.gz
networkmanager-openvpn: update 1.2.6 -> 1.2.8
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Diffstat (limited to 'meta-oe/recipes-connectivity/loudmouth')
0 files changed, 0 insertions, 0 deletions
ccess'>lucaceresoli/master-next-success OpenEmbedded Core user contribution treesGrokmirror user
summaryrefslogtreecommitdiffstats
path: root/scripts/cp-noerror
blob: 28eb90d4a05d0d903517b8de85d4017bcc0bb7b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env python
#
# Allow copying of $1 to $2 but if files in $1 disappear during the copy operation,
# don't error.
# Also don't error if $1 disappears.
#

import sys
import os
import shutil

def copytree(src, dst, symlinks=False, ignore=None):
    """Based on shutil.copytree"""
    names = os.listdir(src)
    try:
        os.makedirs(dst)
    except OSError: 
        # Already exists
        pass
    errors = []
    for name in names:
        srcname = os.path.join(src, name)
        dstname = os.path.join(dst, name)
        try:
            d = dstname
            if os.path.isdir(dstname):
                d = os.path.join(dstname, os.path.basename(srcname))
            if os.path.exists(d):
                continue
            try:
                os.link(srcname, dstname)
            except OSError:
                shutil.copy2(srcname, dstname)
        # catch the Error from the recursive copytree so that we can
        # continue with other files
        except shutil.Error, err:
            errors.extend(err.args[0])
        except EnvironmentError, why:
            errors.append((srcname, dstname, str(why)))
    try:
        shutil.copystat(src, dst)
    except OSError, why:
        errors.extend((src, dst, str(why)))
    if errors:
        raise shutil.Error, errors

try:
    copytree(sys.argv[1], sys.argv[2])
except shutil.Error:
   pass
except OSError:
   pass