Advertisement
gleechinese

arch.py.patch

Oct 10th, 2011
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.03 KB | None | 0 0
  1. --- arch.py.bak 2011-10-10 12:06:24.675471162 +0200
  2. +++ arch.py 2011-10-10 11:48:12.926870430 +0200
  3. @@ -1,4 +1,4 @@
  4. -#!/usr/bin/env python
  5. +#!/usr/bin/env python2
  6.  # Copyright (c) 2009, Willow Garage, Inc.
  7.  # All rights reserved.
  8.  #
  9. @@ -31,16 +31,20 @@
  10.  from __future__ import with_statement
  11.  from linux_helpers import *
  12.  import os
  13. -
  14. +import roslib.os_detect
  15.  import rosdep.base_rosdep
  16. +import rosdep.installers
  17.  
  18.  ###### Arch SPECIALIZATION #########################
  19.  
  20.  def pacman_detect(p):
  21.      return subprocess.call(['pacman', '-Q', p], stdout=subprocess.PIPE, stderr=subprocess.PIPE)    
  22.  
  23. -class Arch(rosdep.base_rosdep.RosdepBaseOS):
  24. -
  25. +class Arch(roslib.os_detect.Arch,rosdep.base_rosdep.RosdepBaseOS):
  26. +    def __init__(self):
  27. +        self.installers = {}
  28. +        self.installers['pacman'] = rosdep.installers.PacmanInstaller
  29. +        self.installers['default'] = rosdep.installers.PacmanInstaller
  30.      def check_presence(self):
  31.          filename = "/etc/arch-release"
  32.          if os.path.exists(filename):
  33.  
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement