r25042 - in /trunk/libschedule-at-perl: At.pm Changes MANIFEST META.yml debian/changelog debian/compat debian/control debian/copyright debian/rules t/t1.t
rmayorga-guest at users.alioth.debian.org
rmayorga-guest at users.alioth.debian.org
Sat Sep 13 09:48:05 UTC 2008
Author: rmayorga-guest
Date: Sat Sep 13 09:48:02 2008
New Revision: 25042
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=25042
Log:
* New upstream release
* debian/control
+ debhelper version to 7
+ set standards-version to 3.8.0 (no changes needed)
+ add myself to uploaders
+ add module name to long-description
* debian/rules - refresh it using dh-make-perl -R
* debian/copyright - converted to (new)format
Added:
trunk/libschedule-at-perl/META.yml
- copied unchanged from r25041, branches/upstream/libschedule-at-perl/current/META.yml
Modified:
trunk/libschedule-at-perl/At.pm
trunk/libschedule-at-perl/Changes
trunk/libschedule-at-perl/MANIFEST
trunk/libschedule-at-perl/debian/changelog
trunk/libschedule-at-perl/debian/compat
trunk/libschedule-at-perl/debian/control
trunk/libschedule-at-perl/debian/copyright
trunk/libschedule-at-perl/debian/rules
trunk/libschedule-at-perl/t/t1.t
Modified: trunk/libschedule-at-perl/At.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libschedule-at-perl/At.pm?rev=25042&op=diff
==============================================================================
--- trunk/libschedule-at-perl/At.pm (original)
+++ trunk/libschedule-at-perl/At.pm Sat Sep 13 09:48:02 2008
@@ -2,13 +2,13 @@
require 5.004;
-# Copyright (c) 1997-2002 Jose A. Rodriguez. All rights reserved.
+# Copyright (c) 1997-2006 Jose A. Rodriguez. All rights reserved.
# This program is free software; you can redistribute it and/or modify it
# under the same terms as Perl itself.
use vars qw($VERSION @ISA $TIME_FORMAT);
-$VERSION = '1.06';
+$VERSION = '1.07';
###############################################################################
# Load configuration for this OS
@@ -16,7 +16,7 @@
use Config;
-my @configs = split (/\./, "$Config{'osname'}.$Config{'osvers'}");
+my @configs = split (/\./, "$Config{'osname'}");
while (@configs) {
my $subName = 'AtCfg_' . join('_', @configs);
$subName =~ s/[^\w\d]/_/g;
@@ -74,14 +74,19 @@
return if !defined $params{TAG};
my %jobs = getJobs();
+ my %return;
foreach my $job (values %jobs) {
next if !defined($job->{JOBID}) ||
!defined($job->{TAG});
- remove(JOBID => "$job->{JOBID}")
- if $job->{JOBID} && $params{TAG} eq $job->{TAG};
+ if ($job->{JOBID} && $params{TAG} eq $job->{TAG}) {
+ $return{$job->{JOBID}} =
+ remove(JOBID => "$job->{JOBID}")
+ }
}
+
+ return \%return
}
}
@@ -203,8 +208,8 @@
%jobs = Schedule::At::getJobs(JOBID => $string);
%jobs = Schedule::At::getJobs(TAG => $string);
- Schedule::At::readJob(JOBID => $string);
- Schedule::At::readJob(TAG => $string);
+ Schedule::At::readJobs(JOBID => $string);
+ Schedule::At::readJobs(TAG => $string);
Schedule::At::remove(JOBID => $string);
Schedule::At::remove(TAG => $string);
@@ -251,7 +256,9 @@
a job or a set of jobs to delete with the B<TAG> parameter, removing
all the jobs that have the same tag (as specified with the add subroutine).
-Returns 0 on success or a value != 0 if an error occurred.
+Used with JOBID, returns 0 on success or a value != 0 if an error occurred.
+Used with TAG, returns a hash reference where the keys are the JOBID of
+the jobs found and the values indicate the success of the remove operation.
=item Schedule::At::getJobs
Modified: trunk/libschedule-at-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libschedule-at-perl/Changes?rev=25042&op=diff
==============================================================================
--- trunk/libschedule-at-perl/Changes (original)
+++ trunk/libschedule-at-perl/Changes Sat Sep 13 09:48:02 2008
@@ -41,3 +41,7 @@
1.06 Tue Sep 13 09:10:56 MEST 2005
- Added support for Darwin (Felipe Wettstein <karl AT gromski.ch>)
+1.07 Mon Sep 8 09:21:34 MEST 2008
+ - Fixed typo in pod (Michael Gang" <michaelgang AT gmail.com>)
+ - remove function using TAG now returns something useful (pointed by
+ <T.Haecker AT gmx.net>)
Modified: trunk/libschedule-at-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libschedule-at-perl/MANIFEST?rev=25042&op=diff
==============================================================================
--- trunk/libschedule-at-perl/MANIFEST (original)
+++ trunk/libschedule-at-perl/MANIFEST Sat Sep 13 09:48:02 2008
@@ -4,3 +4,4 @@
At.pm
Makefile.PL
t/t1.t
+META.yml Module meta-data (added by MakeMaker)
Modified: trunk/libschedule-at-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libschedule-at-perl/debian/changelog?rev=25042&op=diff
==============================================================================
--- trunk/libschedule-at-perl/debian/changelog (original)
+++ trunk/libschedule-at-perl/debian/changelog Sat Sep 13 09:48:02 2008
@@ -1,12 +1,22 @@
-libschedule-at-perl (1.06-2) UNRELEASED; urgency=low
+libschedule-at-perl (1.07-1) unstable; urgency=low
[ Vincent Danjean ]
* [debian/control] fix typo in Homepage field
[ gregor herrmann ]
* debian/watch: use dist-based URL.
+
+ [ Rene Mayorga ]
+ * New upstream release
+ * debian/control
+ + debhelper version to 7
+ + set standards-version to 3.8.0 (no changes needed)
+ + add myself to uploaders
+ + add module name to long-description
+ * debian/rules - refresh it using dh-make-perl -R
+ * debian/copyright - converted to (new)format
- -- Vincent Danjean <vdanjean at debian.org> Sat, 01 Dec 2007 14:03:20 +0100
+ -- Rene Mayorga <rmayorga at debian.org.sv> Sat, 13 Sep 2008 03:30:31 -0600
libschedule-at-perl (1.06-1) unstable; urgency=low
Modified: trunk/libschedule-at-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libschedule-at-perl/debian/compat?rev=25042&op=diff
==============================================================================
--- trunk/libschedule-at-perl/debian/compat (original)
+++ trunk/libschedule-at-perl/debian/compat Sat Sep 13 09:48:02 2008
@@ -1,1 +1,1 @@
-5
+7
Modified: trunk/libschedule-at-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libschedule-at-perl/debian/control?rev=25042&op=diff
==============================================================================
--- trunk/libschedule-at-perl/debian/control (original)
+++ trunk/libschedule-at-perl/debian/control Sat Sep 13 09:48:02 2008
@@ -1,12 +1,12 @@
Source: libschedule-at-perl
Section: perl
Priority: optional
-Build-Depends: debhelper (>= 5.0.0),
+Build-Depends: debhelper (>= 7),
at
Build-Depends-Indep: perl (>= 5.8.8-12)
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
-Uploaders: Vincent Danjean <vdanjean at debian.org>
-Standards-Version: 3.7.2
+Uploaders: Vincent Danjean <vdanjean at debian.org>, Rene Mayorga <rmayorga at debian.org.sv>
+Standards-Version: 3.8.0
Homepage: http://search.cpan.org/dist/Schedule-At/
Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libschedule-at-perl/
Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libchedule-atperl/
@@ -15,5 +15,5 @@
Architecture: all
Depends: ${perl:Depends}, ${misc:Depends}, at
Description: OS independent interface to the Unix 'at' command
- This modules provides an OS independent interface to 'at', the Unix
+ Schedule::At provides an OS independent interface to 'at', the Unix
command that allows you to execute commands at a specified time.
Modified: trunk/libschedule-at-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libschedule-at-perl/debian/copyright?rev=25042&op=diff
==============================================================================
--- trunk/libschedule-at-perl/debian/copyright (original)
+++ trunk/libschedule-at-perl/debian/copyright Sat Sep 13 09:48:02 2008
@@ -1,21 +1,25 @@
-This is the debian package for the Schedule::At module.
-It was created by Vincent Danjean <vdanjean at debian.org> using dh-make-perl.
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=226
+Upstream-Name: Schedule-At
+Upstream-Maintainer: Jose A. Rodriguez <josear+perl at ac.upc.es>
+Upstream-Source: http://search.cpan.org/dist/Schedule-At/
-It was downloaded from http://search.cpan.org/dist/Schedule::At/
+Files: *
+Copyright: © 1997-2005 by Jose A. Rodriguez
+License: GPL-1+ | Artistic
+ This program is free software; you can redistribute it and/or modify it
+ under the same terms as Perl itself.
+ .
+ Perl is distributed under the GNU General Public License, either version 1 or
+ (at your option) any later version, and the Artistic License.
+ .
-The upstream author is: Jose A. Rodriguez <josear+perl at ac.upc.es>.
+Files: debian/*
+Copyright: © 2007-2008 Vincent Danjean <vdanjean at debian.org>
+License: GPL-1+ | Artistic
+ This program is free software; you can redistribute it and/or modify it
+ under the same terms as Perl itself.
-Copyright (C) 1997-2005 by Jose A. Rodriguez
-with several patches from different people (see Changes file in
-/usr/share/doc/libschedule-at-perl).
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
-Perl is distributed under either the Artistic licence or the GPL.
-The full text of the GPL is available on Debian systems in
-/usr/share/common-licenses/GPL
-The full text of the Artistic Licence is available on Debian systems in
+On Debian systems, the complete text of the GNU General Public License can be
+found in /usr/share/common-licenses/GPL and the Artistic License in
/usr/share/common-licenses/Artistic.
-The Debian packaging is (C) 2007, Vincent Danjean <vdanjean at debian.org> and
-is licensed under the same terms as the software itself (see above).
Modified: trunk/libschedule-at-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libschedule-at-perl/debian/rules?rev=25042&op=diff
==============================================================================
--- trunk/libschedule-at-perl/debian/rules (original)
+++ trunk/libschedule-at-perl/debian/rules Sat Sep 13 09:48:02 2008
@@ -1,81 +1,23 @@
#!/usr/bin/make -f
-# This debian/rules file is provided as a template for normal perl
-# packages. It was created by Marc Brockschmidt <marc at dch-faq.de> for
-# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
-# be used freely wherever it is useful.
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-# If set to a true value then MakeMaker's prompt function will
-# always return the default without waiting for user input.
-export PERL_MM_USE_DEFAULT=1
-
-PACKAGE=$(shell dh_listpackages)
-
-ifndef PERL
-PERL = /usr/bin/perl
-endif
-
-TMP =$(CURDIR)/debian/$(PACKAGE)
build: build-stamp
build-stamp:
- dh_testdir
-
- # As this is a architecture independent package, we are not
- # supposed to install stuff to /usr/lib. MakeMaker creates
- # the dirs, we prevent this by setting the INSTALLVENDORARCH
- # and VENDORARCHEXP environment variables.
-
- # Add commands to compile the package here
- $(PERL) Makefile.PL INSTALLDIRS=vendor \
- INSTALLVENDORARCH=/usr/share/perl5/ \
- VENDORARCHEXP=/usr/share/perl5/
- $(MAKE)
- $(MAKE) test
-
+ dh build
touch $@
clean:
- dh_testdir
- dh_testroot
+ dh $@
- dh_clean build-stamp install-stamp
-
- # Add commands to clean up after the build process here
- [ ! -f Makefile ] || $(MAKE) realclean
-
-install: build install-stamp
-install-stamp:
- dh_testdir
- dh_testroot
- dh_clean -k
-
- # Add commands to install the package into debian/$PACKAGE_NAME here
- $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-
+install: install-stamp
+install-stamp: build-stamp
+ dh install
touch $@
binary-arch:
-# We have nothing to do here for an architecture-independent package
-binary-indep: build install
- dh_testdir
- dh_testroot
- dh_installexamples
- dh_installdocs README
- dh_installchangelogs Changes
- dh_perl
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_gencontrol
- dh_md5sums
- dh_builddeb
+binary-indep: install
+ dh $@
-source diff:
- @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+binary: binary-arch binary-indep
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary
+.PHONY: binary binary-arch binary-indep install clean build
Modified: trunk/libschedule-at-perl/t/t1.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libschedule-at-perl/t/t1.t?rev=25042&op=diff
==============================================================================
--- trunk/libschedule-at-perl/t/t1.t (original)
+++ trunk/libschedule-at-perl/t/t1.t Sat Sep 13 09:48:02 2008
@@ -1,4 +1,5 @@
use Test;
+use strict;
BEGIN { plan tests => 6 }
@@ -33,7 +34,7 @@
$rv = Schedule::At::remove (TAG => '_TEST_aTAG');
my %afterRemoveJobs = Schedule::At::getJobs();
listJobs('Schedule::At jobs deleted') if $verbose;
-ok(!$rv && scalar(keys %beforeJobs) == scalar(keys %afterRemoveJobs));
+ok(scalar(keys %beforeJobs) == scalar(keys %afterRemoveJobs));
# getJobs with TAG param
$rv = Schedule::At::add (
More information about the Pkg-perl-cvs-commits
mailing list