aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorjunovitch <junovitch@FreeBSD.org>2016-06-26 08:42:55 +0800
committerjunovitch <junovitch@FreeBSD.org>2016-06-26 08:42:55 +0800
commit2eb635ed5dbd1ff7be1350b3dfa8e977e3e7360d (patch)
treea994b1670d95120317013986f7dbe8ad0e5267fd /sysutils
parent4845e29219e3929dd02408da424c87ba2a309ab0 (diff)
downloadfreebsd-ports-gnome-2eb635ed5dbd1ff7be1350b3dfa8e977e3e7360d.tar.gz
freebsd-ports-gnome-2eb635ed5dbd1ff7be1350b3dfa8e977e3e7360d.tar.zst
freebsd-ports-gnome-2eb635ed5dbd1ff7be1350b3dfa8e977e3e7360d.zip
sysutils/py-salt: update 2016.3.0 -> 2016.3.1
- Remove patches accepted upstream Changes: https://docs.saltstack.com/en/latest/topics/releases/2016.3.1.html PR: 210395 Submitted by: Christer Edwards <christer.edwards@gmail.com> (maintainer)
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/py-salt/Makefile3
-rw-r--r--sysutils/py-salt/distinfo6
-rw-r--r--sysutils/py-salt/files/patch-salt_grains_core.py12
-rw-r--r--sysutils/py-salt/files/patch-salt_grains_disks.py51
-rw-r--r--sysutils/py-salt/files/patch-salt_modules_pkgng.py24
-rw-r--r--sysutils/py-salt/files/patch-salt_returners_local__cache.py22
6 files changed, 4 insertions, 114 deletions
diff --git a/sysutils/py-salt/Makefile b/sysutils/py-salt/Makefile
index c595857a6c2f..479d050a4e50 100644
--- a/sysutils/py-salt/Makefile
+++ b/sysutils/py-salt/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= salt
-PORTVERSION= 2016.3.0
-PORTREVISION= 1
+PORTVERSION= 2016.3.1
CATEGORIES= sysutils python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/sysutils/py-salt/distinfo b/sysutils/py-salt/distinfo
index 3b3447ec0317..fef3f74b0278 100644
--- a/sysutils/py-salt/distinfo
+++ b/sysutils/py-salt/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1464227255
-SHA256 (salt-2016.3.0.tar.gz) = e316dd103b7faeaa97820197e4d0d7d358519f0ca2a6dcb1d9b718eea801ed30
-SIZE (salt-2016.3.0.tar.gz) = 7913503
+TIMESTAMP = 1466111476
+SHA256 (salt-2016.3.1.tar.gz) = e6bdba4693116430c2af57497eb63399e3a139ac0a7016fa0870b49fbe987f75
+SIZE (salt-2016.3.1.tar.gz) = 7932479
diff --git a/sysutils/py-salt/files/patch-salt_grains_core.py b/sysutils/py-salt/files/patch-salt_grains_core.py
deleted file mode 100644
index 04794a04deff..000000000000
--- a/sysutils/py-salt/files/patch-salt_grains_core.py
+++ /dev/null
@@ -1,12 +0,0 @@
-# Issue #33608
-# https://github.com/saltstack/salt/issues/33608
---- salt/grains/core.py.orig 2016-05-25 22:30:31 UTC
-+++ salt/grains/core.py
-@@ -1422,6 +1422,7 @@ def os_data():
- else:
- grains['os'] = grains['kernel']
- if grains['kernel'] == 'FreeBSD':
-+ grains.update(_bsd_cpudata(grains))
- try:
- grains['osrelease'] = __salt__['cmd.run']('freebsd-version -u').split('-')[0]
- except salt.exceptions.CommandExecutionError:
diff --git a/sysutils/py-salt/files/patch-salt_grains_disks.py b/sysutils/py-salt/files/patch-salt_grains_disks.py
deleted file mode 100644
index d10ce2a3e411..000000000000
--- a/sysutils/py-salt/files/patch-salt_grains_disks.py
+++ /dev/null
@@ -1,51 +0,0 @@
---- salt/grains/disks.py.orig 2016-05-25 22:30:31 UTC
-+++ salt/grains/disks.py
-@@ -57,18 +57,27 @@ class _geomconsts(object):
-
- _datatypes = {
- MEDIASIZE: ('re_int', r'(\d+)'),
-- SECTORSIZE: 'int',
-- STRIPESIZE: 'int',
-- STRIPEOFFSET: 'int',
-- ROTATIONRATE: 'int',
-+ SECTORSIZE: 'try_int',
-+ STRIPESIZE: 'try_int',
-+ STRIPEOFFSET: 'try_int',
-+ ROTATIONRATE: 'try_int',
- }
-
-
- def _datavalue(datatype, data):
-- if datatype == 'int':
-- return int(data)
-- elif datatype and datatype[0] == 're_int':
-- return int(re.search(datatype[1], data).group(1))
-+ if datatype == 'try_int':
-+ try:
-+ return int(data)
-+ except ValueError:
-+ return None
-+ elif datatype is tuple and datatype[0] == 're_int':
-+ search = re.search(datatype[1], data)
-+ if search:
-+ try:
-+ return int(search.group(1))
-+ except ValueError:
-+ return None
-+ return None
- else:
- return data
-
-@@ -97,9 +106,11 @@ def _freebsd_geom():
- tmp[_geomconsts._aliases[attrib]] = value
-
- name = tmp.pop(_geomconsts.GEOMNAME)
-+ if name.startswith('cd'):
-+ return
-
- ret['disks'][name] = tmp
-- if tmp[_geomconsts.ROTATIONRATE] == 0:
-+ if tmp.get(_geomconsts.ROTATIONRATE) == 0:
- log.trace('Device {0} reports itself as an SSD'.format(device))
- ret['SSDs'].append(name)
-
diff --git a/sysutils/py-salt/files/patch-salt_modules_pkgng.py b/sysutils/py-salt/files/patch-salt_modules_pkgng.py
deleted file mode 100644
index 5200adc32a34..000000000000
--- a/sysutils/py-salt/files/patch-salt_modules_pkgng.py
+++ /dev/null
@@ -1,24 +0,0 @@
---- salt/modules/pkgng.py.orig 2016-05-25 22:30:31 UTC
-+++ salt/modules/pkgng.py
-@@ -97,7 +97,8 @@ def _get_pkgng_version(jail=None, chroot
- '''
- return the version of 'pkg'
- '''
-- return __salt__['cmd.run']([_pkg(jail, chroot), '--version']).strip()
-+ cmd = _pkg(jail, chroot) + ['--version']
-+ return __salt__['cmd.run'](cmd).strip()
-
-
- def _get_version(name, results):
-@@ -287,9 +288,9 @@ def latest_version(*names, **kwargs):
- for name in names:
- # FreeBSD supports packages in format java/openjdk7
- if '/' in name:
-- cmd = [_pkg(jail, chroot), 'search']
-+ cmd = _pkg(jail, chroot) + ['search']
- else:
-- cmd = [_pkg(jail, chroot), 'search', '-S', 'name', '-Q', 'version', '-e']
-+ cmd = _pkg(jail, chroot) + ['search', '-S', 'name', '-Q', 'version', '-e']
- if quiet:
- cmd.append('-q')
- cmd.append(name)
diff --git a/sysutils/py-salt/files/patch-salt_returners_local__cache.py b/sysutils/py-salt/files/patch-salt_returners_local__cache.py
deleted file mode 100644
index fa9e45050dcd..000000000000
--- a/sysutils/py-salt/files/patch-salt_returners_local__cache.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# Issue #33554
-# https://github.com/saltstack/salt/issues/33554
---- salt/returners/local_cache.py.orig 2016-05-25 22:30:31 UTC
-+++ salt/returners/local_cache.py
-@@ -407,14 +407,14 @@ def clean_old_jobs():
- for final in t_path_dirs:
- f_path = os.path.join(t_path, final)
- jid_file = os.path.join(f_path, 'jid')
-- if not os.path.isfile(jid_file):
-+ if not os.path.isfile(jid_file) and os.path.exists(t_path):
- # No jid file means corrupted cache entry, scrub it
- # by removing the entire t_path directory
- shutil.rmtree(t_path)
-- else:
-+ elif os.path.isfile(jid_file):
- jid_ctime = os.stat(jid_file).st_ctime
- hours_difference = (cur - jid_ctime) / 3600.0
-- if hours_difference > __opts__['keep_jobs']:
-+ if hours_difference > __opts__['keep_jobs'] and os.path.exists(t_path):
- # Remove the entire t_path from the original JID dir
- shutil.rmtree(t_path)
-