Commit Graph

10219 Commits

Author SHA1 Message Date
David Boucha
9f35fc6107 Merge pull request #3477 from techhat/locate
Adding module for locate
2013-01-28 09:38:03 -08:00
Joseph Hall
bafcac21c4 Adding module for locate 2013-01-28 10:25:04 -07:00
Thomas S Hatch
d50825995d Merge pull request #3472 from techhat/altlinux
Adding grains for ALT Linux
2013-01-27 19:28:31 -08:00
Joseph Hall
019bf7bd0f Fixing lsb_distrib_release and lsb_distrib_codename 2013-01-27 19:56:24 -07:00
Joseph Hall
c450eb6745 Adding grains for ALT Linux 2013-01-27 19:45:59 -07:00
Thomas S Hatch
23a5bb70b2 Merge pull request #3469 from archtaku/version_audit
Prepare pkg providers for #3278
2013-01-27 10:01:51 -08:00
Thomas S Hatch
b93a536785 Merge pull request #3467 from giantlock/develop
fix some issues with pkg
2013-01-27 10:00:14 -08:00
Erik Johnson
15e0324b3b Rework version comparison to be more user-friendly
This commit touches a lot of files, but almost all of them refer back to
the common code written in pkg_resource.py.
2013-01-27 03:28:38 -06:00
Erik Johnson
d03dc651c3 Add version specification to pacman
This commit introduces version specification to pacman, as well as
prepares it for #3278.
2013-01-27 00:37:23 -06:00
Erik Johnson
ef5cab969f Minor fixes to tonight's zypper changes 2013-01-27 00:36:53 -06:00
Erik Johnson
3bc4515716 Docstring updates to reflect new features 2013-01-26 23:57:49 -06:00
Erik Johnson
66ec2d0208 Add version specification to zypper
This commit introduces version specification to zypper, as well as
prepares it for #3278.
2013-01-26 23:49:19 -06:00
Erik Johnson
3cefc70fb4 Make version specification work with "pkgs" (apt)
Also a minor bugfix in available_version and miscellaneous PEP8 fixes.
2013-01-26 21:20:33 -06:00
Erik Johnson
8230e6bd72 Fix pkg.install for one-pkg install w/out version
This fixes a bug I introduced in a commit earlier today, which would
affect modules I've been working on to prepare for #3278 (yumpkg,
yumpkg5, and apt). A traditional single package install would fail
if a version was not specified.
2013-01-26 21:08:36 -06:00
Erik Johnson
f5c851c0a8 PEP8 fixes from PyLint 2013-01-26 20:44:36 -06:00
Erik Johnson
f8fffbb6c4 Check "version" kwarg after parse_targets 2013-01-26 20:37:34 -06:00
Erik Johnson
0812f1653a Make version specification work with "pkgs" (yum)
This makes yumpkg{,5}.py ready for #3278. It also makes version
specification for single-package installs work in yumpkg5.py.
2013-01-26 20:37:34 -06:00
Erik Johnson
3cfbc71e40 Modify pack_pkgs() to return name/version pairs
This is in preparation for #3278. This commit preserves backwards
compatibility for providers that have not been updated to support
specific version numbers the "pkgs" argument to pkg.install.
2013-01-26 20:37:34 -06:00
Erik Johnson
9c49aac89f PEP8 fixes from PyLint 2013-01-26 20:37:34 -06:00
Jeff Schroeder
474e1675e9 Merge pull request #3468 from archtaku/quickfix
Fix bug in nested outputter when displaying floats
2013-01-26 16:31:17 -08:00
Erik Johnson
5716b06edd Fix bug in nested outputter when displaying floats
Just a simple fix for a bug that was keeping floating-point numbers from
showing up in the new nested outputter.
2013-01-26 15:29:59 -06:00
Thomas S Hatch
fa2f082e35 Merge pull request #3466 from s0undt3ch/hotfix/zmq-ipc-path-max-length
`zmq.IPC_PATH_MAX_LEN` is not available in older ZMQ, only on PyZMQ>=2.2
2013-01-26 12:27:32 -08:00
Pedro Algarvio
55ab31cea7 zmq.IPC_PATH_MAX_LEN is not available in older ZMQ, only on PyZMQ>=2.2 2013-01-26 20:02:14 +00:00
Denis Generalov
959ddfb5cb fix version type 2013-01-26 18:04:44 +04:00
Denis Generalov
527bb79c7d update docstring for available_version() 2013-01-26 18:03:39 +04:00
Joseph Hall
6a6127176d Merge pull request #3463 from morganfainberg/pkgrepo-apt-update
Update to the pkgrepo apt functions in apt module
2013-01-26 05:45:50 -08:00
Morgan Fainberg
d5e4caf135 Update to the PKGREPO apt functions in apt module
* URI is was not really a functional feature since
  the uri was the element that the pkgrepo functions
  used as a base for matching internally.  it is essentially
  a new source definition if the URI changes, so the best
  bet is to .absent the repo and add a new one.

* added in ability to manage repo keys to the APT .managed module
  and by nature of how .manage calls apt.mod_repo, the pkg.mod_repo
  can also now add GPG keys for the apt repositories

* added "consolidate" option.  This will smash down the apt repositories
  into as few lines as possible.  It should do some basic cleanup.  This
  function helps (when enabled) to ensure that salt doesn't miss a repo
  when it's not the "first" matched in the .get_repo function for a
  .managed state.

* changed pkgrepo to watch for exceptions from .mod_repo so that if
  there is an error (exception) that is raised (intentionally or
  unintentionally) the error is displayed to the user.

* updated documentation for apt pkgrepo to reflect these changes
2013-01-26 02:31:29 -08:00
Erik Johnson
1bcbceef32 Merge pull request #3462 from archtaku/quickfix
Docstring correction
2013-01-25 23:54:59 -08:00
Erik Johnson
ea45a87e52 Docstring correction
/usr/bin/which is not POSIX
2013-01-26 01:54:01 -06:00
Thomas S Hatch
1f36572381 Merge pull request #3461 from archtaku/quickfix
Send stderr to subprocess.PIPE in version.py
2013-01-25 23:49:01 -08:00
Erik Johnson
7fdda15de0 Send stderr to subprocess.PIPE in version.py
If git is not installed, the stderr output from the shell out to 'which
git' is printed to the console whenever a salt CLI command is run. This
commit sends it to the subprocess pipe to keep it away from the console.

Also, I replaced the call to 'which git' with the POSIX-compliant
'command -v git'. The 'which' command should be avoided as it is not
POSIX-compliant, and doesn't set a nonzero return code on all platforms.
See below for an example of how which does not work as expected on
Solaris. I believe the MacOS version of which also has this problem. On
these platforms, if git was not found, the call to
subprocess.Popen.poll() would not find a nonzero exit status and salt
would therefore continue trying to obtain the current git commit ID.

$ uname -a
SunOS foo.tld 5.10 Generic_139556-08 i86pc i386 i86pc
$ which foo
no foo in /usr/pkg/bin /usr/pkg/sbin /usr/sfw/bin /usr/sfw/sbin /sbin
/usr/sbin /usr/ccs/bin /usr/bin
$ echo $?
0
$ command -v foo
-bash: command: foo: not found
$ echo $?
1
2013-01-26 01:32:37 -06:00
Thomas S Hatch
dd28185763 Merge pull request #3459 from archtaku/tests
Add tests for nested grain/pillar matching
2013-01-25 22:24:42 -08:00
Erik Johnson
77eeb47bea Add tests for nested grain/pillar matching
Also added tests for traditional grain matching when target grain is a
list.
2013-01-26 00:13:51 -06:00
Thomas S Hatch
aec060eeba Fix #3397 2013-01-25 22:54:37 -07:00
Thomas S Hatch
ba7694507a Fix #3367 2013-01-25 22:46:04 -07:00
Thomas S Hatch
a49f5104d9 Merge pull request #3458 from morganfainberg/document-fixes-for-apt-pkrepo
Quick Documentation fixes for APT pkgrepo state
2013-01-25 20:20:02 -08:00
Thomas S Hatch
4c95f0e0ea fix #3449 2013-01-25 21:16:11 -07:00
Morgan Fainberg
f606079c1c Quick Documentation fixes for APT pkgrepo state
* the aptitude repo manager needs the name to be the complete
  entry from the sources.list file.  Documentation modified to
  make this clear (compared to say the YUM version)

* removed a superfluous reference to "deb" in the uri section
2013-01-25 19:15:18 -08:00
Thomas S Hatch
4998a15839 remove travis target in readme 2013-01-25 17:56:31 -07:00
Thomas S Hatch
644d969de9 Merge pull request #3457 from dlindquist/develop
Fix import typo in rpm build patch
2013-01-25 16:50:08 -08:00
Thomas S Hatch
81aa58a0bf Merge pull request #3454 from seanchannel/develop
remove execute bit
2013-01-25 16:43:17 -08:00
Denis Generalov
5958724342 keep up with pkg.latest state 2013-01-26 04:24:30 +04:00
Thomas S Hatch
83ba20fb25 Merge pull request #3445 from gotcha/develop
use zmq.IPC_PATH_MAX_LEN constant
2013-01-25 16:17:55 -08:00
Thomas S Hatch
6cd1a508f3 Merge pull request #3443 from viq/patch-1
Fix docs for makedirs_perms
2013-01-25 16:12:31 -08:00
Thomas S Hatch
4d3dff3d1e minor spacing change 2013-01-25 17:04:11 -07:00
Thomas S Hatch
239a04c4ce Fix #3456 2013-01-25 16:52:23 -07:00
David Lindquist
7cec8e54b6 Fix import typo in rpm build patch 2013-01-25 15:08:31 -08:00
Sean Channel
6cebb2f05d remove execute bit 2013-01-25 12:52:56 -08:00
Joseph Hall
5cf899001a Merge pull request #3452 from seanchannel/develop
install from @madduck
2013-01-25 11:51:10 -08:00
Sean Channel
88249e219f add sysvinit-utils to pinnings 2013-01-25 11:40:24 -08:00