Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- arch.py.bak 2011-10-10 12:06:24.675471162 +0200
- +++ arch.py 2011-10-10 11:48:12.926870430 +0200
- @@ -1,4 +1,4 @@
- -#!/usr/bin/env python
- +#!/usr/bin/env python2
- # Copyright (c) 2009, Willow Garage, Inc.
- # All rights reserved.
- #
- @@ -31,16 +31,20 @@
- from __future__ import with_statement
- from linux_helpers import *
- import os
- -
- +import roslib.os_detect
- import rosdep.base_rosdep
- +import rosdep.installers
- ###### Arch SPECIALIZATION #########################
- def pacman_detect(p):
- return subprocess.call(['pacman', '-Q', p], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- -class Arch(rosdep.base_rosdep.RosdepBaseOS):
- -
- +class Arch(roslib.os_detect.Arch,rosdep.base_rosdep.RosdepBaseOS):
- + def __init__(self):
- + self.installers = {}
- + self.installers['pacman'] = rosdep.installers.PacmanInstaller
- + self.installers['default'] = rosdep.installers.PacmanInstaller
- def check_presence(self):
- filename = "/etc/arch-release"
- if os.path.exists(filename):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement