Hello community, here is the log from the commit of package octave-forge-cgi for openSUSE:Factory checked in at 2016-09-21 18:48:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/octave-forge-cgi (Old) and /work/SRC/openSUSE:Factory/.octave-forge-cgi.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "octave-forge-cgi" Changes: -------- --- /work/SRC/openSUSE:Factory/octave-forge-cgi/octave-forge-cgi.changes 2015-06-30 10:18:09.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.octave-forge-cgi.new/octave-forge-cgi.changes 2016-09-21 18:48:29.000000000 +0200 @@ -1,0 +2,6 @@ +Sat Sep 17 18:04:46 UTC 2016 - [email protected] + +- Update to version 0.1.2 + * Allow running the test code from any directory + +------------------------------------------------------------------- Old: ---- cgi-0.1.1.tar.gz New: ---- cgi-0.1.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ octave-forge-cgi.spec ++++++ --- /var/tmp/diff_new_pack.qOC6Dm/_old 2016-09-21 18:48:31.000000000 +0200 +++ /var/tmp/diff_new_pack.qOC6Dm/_new 2016-09-21 18:48:31.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package octave-forge-cgi # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %define octpkg cgi Name: octave-forge-%{octpkg} -Version: 0.1.1 +Version: 0.1.2 Release: 0 Summary: Common Gataway Interface for Octave License: GPL-2.0+ ++++++ cgi-0.1.1.tar.gz -> cgi-0.1.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cgi/DESCRIPTION new/cgi/DESCRIPTION --- old/cgi/DESCRIPTION 2015-06-22 22:33:12.000000000 +0200 +++ new/cgi/DESCRIPTION 2016-09-07 12:15:51.000000000 +0200 @@ -1,10 +1,10 @@ Name: cgi -Version: 0.1.1 -Date: 2015-06-22 +Version: 0.1.2 +Date: 2016-09-07 Author: Alexander Barth <[email protected]> Maintainer: Alexander Barth <[email protected]> Title: cgi -Description: Common Gatway Interface for Octave +Description: Common Gateway Interface for Octave Categories: Web development Depends: octave (>= 3.8.0) License: GPLv2+ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cgi/NEWS new/cgi/NEWS --- old/cgi/NEWS 2015-06-22 22:33:12.000000000 +0200 +++ new/cgi/NEWS 2016-09-07 12:15:51.000000000 +0200 @@ -1,3 +1,8 @@ +Summary of changes for cgi 0.1.2: +------------------------------------------------------------------- + + ** Allow running the test code from any directory + Summary of important user-visible changes for cgi 0.1.1: ------------------------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cgi/doc/test_cgi.sh new/cgi/doc/test_cgi.sh --- old/cgi/doc/test_cgi.sh 2015-06-22 22:33:12.000000000 +0200 +++ new/cgi/doc/test_cgi.sh 2016-09-07 12:15:51.000000000 +0200 @@ -1,3 +1,4 @@ +# This test script is to be run in the inst directory or after the cgi package is installed. export DOCUMENT_ROOT=/var/www export REQUEST_METHOD=GET @@ -5,6 +6,10 @@ echo "Test GET request" octave -q <<EOF +if isempty(which('cgi')) + pkg load cgi +end + CGI = cgi(); disp(CGI.form.y) assert(strcmp(CGI.form.y,'1,2,3')) @@ -17,6 +22,10 @@ export QUERY_STRING="x=50%2C1,2;y=1,2,3;len=10;name=test;field=random_field" octave -q <<EOF +if isempty(which('cgi')) + pkg load cgi +end + CGI = cgi(); assert(strcmp(CGI.form.y,'1,2,3')) assert(strcmp(CGI.form.field,'random_field')) @@ -31,5 +40,11 @@ export CONTENT_LENGTH=54 echo "x=50%2C1,2&y=1,2,3&len=10&name=test&field=random_field" | \ - octave -qH --eval "CGI = cgi(); assert(strcmp(CGI.form.y,'1,2,3')); disp('All tests passed');"; + octave -qH --eval " \ +if isempty(which('cgi')); \ + pkg load cgi; \ +end; \ +CGI = cgi(); \ +assert(strcmp(CGI.form.y,'1,2,3')); \ +disp('All tests passed');"; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cgi/doc/test_cgi_upload.m new/cgi/doc/test_cgi_upload.m --- old/cgi/doc/test_cgi_upload.m 2015-06-22 22:33:12.000000000 +0200 +++ new/cgi/doc/test_cgi_upload.m 2016-09-07 12:15:51.000000000 +0200 @@ -1,3 +1,7 @@ +if isempty(which('cgi')) + pkg load cgi +end + CGI = cgi(); assert(strcmp(getfirst(CGI,'submit-name'),'Larry')); disp('All tests passed'); \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cgi/doc/test_cgi_upload.sh new/cgi/doc/test_cgi_upload.sh --- old/cgi/doc/test_cgi_upload.sh 2015-06-22 22:33:12.000000000 +0200 +++ new/cgi/doc/test_cgi_upload.sh 2016-09-07 12:15:51.000000000 +0200 @@ -1,3 +1,8 @@ +# This test script is expected to fail because file upload is not implemented. +# This script is to be run in the inst directory or after the cgi package is installed. + + + export DOCUMENT_ROOT=/var/www export REQUEST_METHOD=POST export CONTENT_TYPE=multipart/form-data
