Hello community, here is the log from the commit of package snmpsim for openSUSE:Factory checked in at 2019-02-14 14:35:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/snmpsim (Old) and /work/SRC/openSUSE:Factory/.snmpsim.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "snmpsim" Thu Feb 14 14:35:25 2019 rev:3 rq:674665 version:0.4.7 Changes: -------- --- /work/SRC/openSUSE:Factory/snmpsim/snmpsim.changes 2019-02-11 21:24:02.963123689 +0100 +++ /work/SRC/openSUSE:Factory/.snmpsim.new.28833/snmpsim.changes 2019-02-14 14:35:38.299590570 +0100 @@ -1,0 +2,7 @@ +Sat Feb 9 16:46:18 UTC 2019 - mar...@gmx.de + +- Update to version 0.4.7 + * Added missing SNMP PDU error-status values to the `error` + variation module + +------------------------------------------------------------------- Old: ---- snmpsim-0.4.6.tar.gz New: ---- snmpsim-0.4.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ snmpsim.spec ++++++ --- /var/tmp/diff_new_pack.HAKNi4/_old 2019-02-14 14:35:39.207590160 +0100 +++ /var/tmp/diff_new_pack.HAKNi4/_new 2019-02-14 14:35:39.211590158 +0100 @@ -18,7 +18,7 @@ Name: snmpsim -Version: 0.4.6 +Version: 0.4.7 Release: 0 Summary: SNMP Agents simulator License: BSD-3-Clause ++++++ snmpsim-0.4.6.tar.gz -> snmpsim-0.4.7.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snmpsim-0.4.6/CHANGES.txt new/snmpsim-0.4.7/CHANGES.txt --- old/snmpsim-0.4.6/CHANGES.txt 2019-01-25 07:02:20.000000000 +0100 +++ new/snmpsim-0.4.7/CHANGES.txt 2019-02-09 17:16:10.000000000 +0100 @@ -1,4 +1,11 @@ +Revision 0.4.7, released 09-02-2019 +----------------------------------- + +- Added missing SNMP PDU error-status values to the `error` + variation module +- Fix to define `PrivilegesOf` on Windows + Revision 0.4.6, released 25-01-2019 ----------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snmpsim-0.4.6/PKG-INFO new/snmpsim-0.4.7/PKG-INFO --- old/snmpsim-0.4.6/PKG-INFO 2019-01-25 07:02:34.000000000 +0100 +++ new/snmpsim-0.4.7/PKG-INFO 2019-02-09 17:16:20.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: snmpsim -Version: 0.4.6 +Version: 0.4.7 Summary: SNMP Agents simulator Home-page: https://github.com/etingof/snmpsim Author: Ilya Etingof diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snmpsim-0.4.6/docs/source/simulation-with-variation-modules.rst new/snmpsim-0.4.7/docs/source/simulation-with-variation-modules.rst --- old/snmpsim-0.4.6/docs/source/simulation-with-variation-modules.rst 2018-09-08 20:14:24.000000000 +0200 +++ new/snmpsim-0.4.7/docs/source/simulation-with-variation-modules.rst 2019-02-09 17:13:51.000000000 +0100 @@ -327,6 +327,10 @@ * *status* - specifies error to be flagged. The following SNMP errors codes are supported: + - *tooBig* + - *noSuchName* (only makes sense for SNMP v1) + - *badValue* + - *readOnly* - *genError* - *noAccess* - *wrongType* @@ -343,6 +347,11 @@ - *noSuchInstance* - *endOfMib* +.. note:: + + When *tooBig* error is flagged, variable-bindings list is automatically + reset to empty as per :RFC:`1905#section-4.2.2`. + * *vlist* - a list of triples (comparison:constant:error) to use as an access list for SET values. @@ -354,6 +363,10 @@ The following SNMP errors are supported (case-insensitive): + - *tooBig* + - *noSuchName* (only makes sense for SNMP v1) + - *badValue* + - *readOnly* - *genError* - *noAccess* - *wrongType* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snmpsim-0.4.6/requirements.txt new/snmpsim-0.4.7/requirements.txt --- old/snmpsim-0.4.6/requirements.txt 2018-09-08 20:14:24.000000000 +0200 +++ new/snmpsim-0.4.7/requirements.txt 2019-02-09 17:13:51.000000000 +0100 @@ -1 +1 @@ -pysnmp>=4.4.3,<5.0.0 +pysnmp>=4.4.9,<5.0.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snmpsim-0.4.6/snmpsim/__init__.py new/snmpsim-0.4.7/snmpsim/__init__.py --- old/snmpsim-0.4.6/snmpsim/__init__.py 2019-01-25 07:02:20.000000000 +0100 +++ new/snmpsim-0.4.7/snmpsim/__init__.py 2019-02-09 17:13:51.000000000 +0100 @@ -1,2 +1,2 @@ # http://www.python.org/dev/peps/pep-0396/ -__version__ = '0.4.6' +__version__ = '0.4.7' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snmpsim-0.4.6/snmpsim/daemon.py new/snmpsim-0.4.7/snmpsim/daemon.py --- old/snmpsim-0.4.6/snmpsim/daemon.py 2019-01-25 07:02:20.000000000 +0100 +++ new/snmpsim-0.4.7/snmpsim/daemon.py 2019-02-09 17:13:51.000000000 +0100 @@ -13,8 +13,17 @@ raise error.SnmpsimError('Windows is not inhabited with daemons!') - def dropPrivileges(uname, gname): - return + class PrivilegesOf(object): + """Context manager performing nothing on Windows""" + + def __init__(self, *args, **kwargs): + pass + + def __enter__(self): + pass + + def __exit__(self, *args): + pass else: import os @@ -90,6 +99,7 @@ class PrivilegesOf(object): + """Context manager executing under reduced privileges""" def __init__(self, uname, gname, final=False): self._uname = uname diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snmpsim-0.4.6/snmpsim.egg-info/PKG-INFO new/snmpsim-0.4.7/snmpsim.egg-info/PKG-INFO --- old/snmpsim-0.4.6/snmpsim.egg-info/PKG-INFO 2019-01-25 07:02:33.000000000 +0100 +++ new/snmpsim-0.4.7/snmpsim.egg-info/PKG-INFO 2019-02-09 17:16:20.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: snmpsim -Version: 0.4.6 +Version: 0.4.7 Summary: SNMP Agents simulator Home-page: https://github.com/etingof/snmpsim Author: Ilya Etingof diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/snmpsim-0.4.6/variation/error.py new/snmpsim-0.4.7/variation/error.py --- old/snmpsim-0.4.6/variation/error.py 2018-12-30 16:46:50.000000000 +0100 +++ new/snmpsim-0.4.7/variation/error.py 2019-02-09 17:13:51.000000000 +0100 @@ -10,7 +10,12 @@ from snmpsim.mltsplit import split from pysnmp.smi import error + errorTypes = { + 'toobig': error.TooBigError, + 'nosuchname': error.NoSuchNameError, + 'badvalue': error.BadValueError, + 'readonly': error.ReadOnlyError, 'generror': error.GenError, 'noaccess': error.NoAccessError, 'wrongtype': error.WrongTypeError, @@ -23,6 +28,7 @@ 'authorizationerror': error.AuthorizationError, 'notwritable': error.NotWritableError, 'inconsistentname': error.InconsistentNameError, + # These only makes sense for SNMP v1 'nosuchobject': error.NoSuchObjectError, 'nosuchinstance': error.NoSuchInstanceError, 'endofmib': error.EndOfMibViewError