Hello community, here is the log from the commit of package coccigrep for openSUSE:Factory checked in at 2014-09-22 09:22:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/coccigrep (Old) and /work/SRC/openSUSE:Factory/.coccigrep.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "coccigrep" Changes: -------- --- /work/SRC/openSUSE:Factory/coccigrep/coccigrep.changes 2014-07-04 17:18:27.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.coccigrep.new/coccigrep.changes 2014-09-22 09:22:51.000000000 +0200 @@ -1,0 +2,6 @@ +Mon Sep 15 12:02:07 UTC 2014 - jsl...@suse.com + +- update to latest snapshot (20140913) + * see ChangeLog for changes + +------------------------------------------------------------------- Old: ---- coccigrep-20140217.tar.xz New: ---- coccigrep-20140913.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ coccigrep.spec ++++++ --- /var/tmp/diff_new_pack.oowVmY/_old 2014-09-22 09:22:52.000000000 +0200 +++ /var/tmp/diff_new_pack.oowVmY/_new 2014-09-22 09:22:52.000000000 +0200 @@ -17,7 +17,7 @@ Name: coccigrep -Version: 20140217 +Version: 20140913 Release: 0 Summary: Semantic grep tool for C, based on coccinelle License: GPL-3.0 ++++++ _service ++++++ --- /var/tmp/diff_new_pack.oowVmY/_old 2014-09-22 09:22:52.000000000 +0200 +++ /var/tmp/diff_new_pack.oowVmY/_new 2014-09-22 09:22:52.000000000 +0200 @@ -1,6 +1,6 @@ <services> <service mode="localonly" name="tar_scm"> - <param name="url">git://github.com/regit/coccigrep.git</param> + <param name="url">git://github.com/regit/coccigrep</param> <param name="scm">git</param> <param name="versionformat">%ad</param> </service> ++++++ coccigrep-20140217.tar.xz -> coccigrep-20140913.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/coccigrep-20140217/README.rst new/coccigrep-20140913/README.rst --- old/coccigrep-20140217/README.rst 2014-07-02 17:19:53.000000000 +0200 +++ new/coccigrep-20140913/README.rst 2014-09-15 14:01:39.000000000 +0200 @@ -113,11 +113,13 @@ :Coccigrep Packet datalink source-*.c :Coccigrep Packet datalink set source-*.c -First command will interactively ask you the value. Second one will search all -dereference of the datalink attribute for Packet structure. The last one will -look where the set operation is done on the datalink attribute of Packet. To get -the list of operations on your system, you can run `coccigrep -L` or look at -the list provided when input for operation is asked in interactive mode. +First command will interactively ask you the value. Hit enter to use void +value for type and/or attribute (only if operation does not need them). +Second one will search all dereference of the datalink attribute for Packet +structure. The last one will look where the set operation is done on the +datalink attribute of Packet. To get the list of operations on your system, +you can run `coccigrep -L` or look at the list provided when input for +operation is asked in interactive mode. The matches will appear in the `quickfix list` and the file corresponding to first match will be opened at the corresponding line. Note that you can use completion on diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/coccigrep-20140217/editors/cocci-grep.vim new/coccigrep-20140913/editors/cocci-grep.vim --- old/coccigrep-20140217/editors/cocci-grep.vim 2014-07-02 17:19:53.000000000 +0200 +++ new/coccigrep-20140913/editors/cocci-grep.vim 2014-09-15 14:01:39.000000000 +0200 @@ -64,7 +64,14 @@ let s:operation = input('Enter operation in ('. substitute(s:op_list,'\n','','g') . '): ') let s:files = input('Enter files: ') call inputrestore() - let cgrep = '-V -t ' . shellescape(s:type) . ' -a ' . s:attribute . ' -o ' . s:operation . ' ' . s:files + let cgrep = '-V ' + if s:type + let cgrep = cgrep. '-t ' . shellescape(s:type) . ' ' + endif + if s:attribute + let cgrep = cgrep. '-a ' . s:attribute . ' ' + endif + let cgrep = cgrep . '-o ' . s:operation . ' ' . s:files " 1 args: use files in current dir elseif len(argl) == (0 + s:b_files_arg) let cgrep = '-V -t ' . get(argl, 0) . ' *.[ch]' @@ -80,7 +87,9 @@ endif if s:b_files_arg - let cgrep = cgrep . ' ' . get(argl, len(argl)-1) + if ! exists ("s:files") + let cgrep = cgrep . ' ' . get(argl, len(argl)-1) + endif else let cgrep = cgrep . ' -l ' . g:coccigrep_files endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/coccigrep-20140217/src/coccigrep.py new/coccigrep-20140913/src/coccigrep.py --- old/coccigrep-20140217/src/coccigrep.py 2014-07-02 17:19:53.000000000 +0200 +++ new/coccigrep-20140913/src/coccigrep.py 2014-09-15 14:01:39.000000000 +0200 @@ -23,7 +23,7 @@ import errno import re -COCCIGREP_VERSION = "1.13" +COCCIGREP_VERSION = "1.14" have_multiprocessing = True try: @@ -320,9 +320,6 @@ :type operation: str :raise: :class:`CocciRunException` """ - if stype == None: - raise CocciRunException("Can't use coccigrep without type to " - "search") self.type = stype self.attribute = attribute self.operation = operation -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org