This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2goserver.
commit ccd65e9d446261af5d358b4fde1f7b72837eb552 Author: Mihai Moldovan <io...@ionic.de> Date: Wed Dec 5 08:37:43 2018 +0100 x2goserver/lib: new x2goisint wrapper. --- debian/changelog | 1 + x2goserver/lib/x2goisint | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/debian/changelog b/debian/changelog index e92aa36..8f1fd30 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,6 +17,7 @@ x2goserver (4.1.0.4-0x2go1) UNRELEASED; urgency=medium - X2Go/Utils.pm: fix missing semicolons. - X2Go/Utils.pm: add new is_int subroutine, checking if the provided value is an integer. + - x2goserver/lib: new x2goisint wrapper. * debian/control: + Build-depend upon lsb-release for distro version detection. * debian/x2goserver.manpages: diff --git a/x2goserver/lib/x2goisint b/x2goserver/lib/x2goisint new file mode 100755 index 0000000..eef7f0b --- /dev/null +++ b/x2goserver/lib/x2goisint @@ -0,0 +1,36 @@ +#!/usr/bin/perl + +# Copyright (C) 2018 X2Go Project - https://wiki.x2go.org +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the +# Free Software Foundation, Inc., +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +use strict; + +use X2Go::Utils qw (is_int); + +my $value = shift; +my $allow_negative = shift; + +if (!(defined ($value))) { + print STDERR 'No value passed in, assuming empty string.'; + $value = ''; +} + +if (!(defined ($allow_negative))) { + $allow_negative = 0; +} + +exit is_int ($value); -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goserver.git _______________________________________________ x2go-commits mailing list x2go-commits@lists.x2go.org https://lists.x2go.org/listinfo/x2go-commits