The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / lirc-tools / 0001-tools-Make-make_rel_symlink.py-use-python3.patch
1 From ae2e8cc85b6b4d2202e42d704dde8757ffd31da6 Mon Sep 17 00:00:00 2001
2 From: Alec Leamas <leamas.alec@gmail.com>
3 Date: Thu, 11 Dec 2014 04:44:49 +0100
4 Subject: [PATCH] tools: Make make_rel_symlink.py use python3.
5
6 Upstream patch:
7 http://sourceforge.net/p/lirc/git/ci/ae2e8cc85b6b4d2202e42d704dde8757ffd31da6/
8
9 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
10 ---
11  tools/make_rel_symlink.py | 8 ++++----
12  1 file changed, 4 insertions(+), 4 deletions(-)
13
14 diff --git a/tools/make_rel_symlink.py b/tools/make_rel_symlink.py
15 index 5c893056f379..896637ff93e0 100755
16 --- a/tools/make_rel_symlink.py
17 +++ b/tools/make_rel_symlink.py
18 @@ -1,4 +1,4 @@
19 -#!/usr/bin/env python
20 +#!/usr/bin/env python3
21  
22  import os
23  import os.path
24 @@ -32,16 +32,16 @@ if sys.argv[1] == "-p":
25      sys.argv = sys.argv[ 1:]
26  
27  if len( sys.argv ) != 3:
28 -    print USAGE
29 +    print(USAGE)
30      sys.exit( 1 )
31  
32  if  os.path.isdir(  sys.argv[2] ):
33 -    print "Removing link target dir:" +  sys.argv[2]
34 +    print("Removing link target dir:" +  sys.argv[2])
35      shutil.rmtree( sys.argv[2])
36  
37  link_path = relative_ln_s( sys.argv[1], sys.argv[2] )
38  if just_print:
39 -    print link_path
40 +    print(link_path)
41  else:
42      os.chdir( os.path.dirname( sys.argv[2]))
43      target = os.path.basename( sys.argv[2])
44 -- 
45 2.1.4
46