1. 02 Dec, 2012 1 commit
    • Fix pip module to check if requirements already installed · d277953a
      This updates _is_package_installed() to accept a requirements file
      as an argument.  This is used later in main() to check if python libs
      specified in a requirements file are already installed.  I updated
      main() to consolidate the handling of install/uninstall in a single
      block.  This should help if someone wants to remove packages specified
      by a requirements file.
      Stephen Fromm committed
  2. 01 Dec, 2012 6 commits
  3. 28 Nov, 2012 10 commits
  4. 27 Nov, 2012 10 commits
  5. 26 Nov, 2012 11 commits
  6. 25 Nov, 2012 2 commits
    • Use shlex for rc.conf parsing. · d4af9e4c
      This makes the line parsing a lot more robust (and easier to read).
      Code supplied by @dhozac, thanks!
      
      Remove re import because this is not used anywhere.
      Patrik Lundin committed
    • Rework "enabled" implementation for FreeBSD. · fde00327
      When trying to perform enabled=yes followed by enabled=no
      against FreeBSD the module would die with the following error:
      TypeError: sub() takes at most 4 arguments (5 given)
      
      The target FreeBSD client (8.2) is running python 2.6.6. It seems the
      extra 'flags' argument was added to re.sub() in 2.7.
      
      In fixing this issue I have attempted to create a general atomic method
      for modifying a rc.conf file. Hopefully this will make it easier to add
      other rc based platorms. The strip/split magic was inspired by the user
      module.
      Patrik Lundin committed