]> git.pld-linux.org Git - packages/cacti-plugin-rrdclean.git/commitdiff
- use string not undefined constant
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 14 Dec 2010 07:41:56 +0000 (07:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti-plugin-rrdclean.spec -> 1.11
    warning-fixes.patch -> 1.1

cacti-plugin-rrdclean.spec
warning-fixes.patch [new file with mode: 0644]

index 89138d866269ee82467f8f24676134719c839846..ba0cd739db862fb604c997c1da72531581bef6f3 100644 (file)
@@ -2,13 +2,14 @@
 Summary:       Cacti RRD File Cleaner
 Name:          cacti-plugin-%{plugin}
 Version:       0.40
-Release:       0.4
+Release:       0.5
 License:       GPL v2
 Group:         Applications/WWW
 Source0:       http://docs.cacti.net/_media/plugin:rrdclean-v%{version}.tgz
 # Source0-md5: afd7ae246482fbee883485e0430041e8
 Patch0:                paths.patch
 Patch1:                fix-paths-handling.patch
+Patch2:                warning-fixes.patch
 URL:           http://docs.cacti.net/plugin:rrdclean
 Requires:      cacti >= 0.8.6j
 Requires:      php-common >= 3:4.3.0
@@ -29,6 +30,7 @@ files.
 mv %{plugin}/* .; rmdir %{plugin}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/warning-fixes.patch b/warning-fixes.patch
new file mode 100644 (file)
index 0000000..b0a7bc9
--- /dev/null
@@ -0,0 +1,11 @@
+--- cacti-plugin-rrdclean-0.40/rrdcleaner.php  2010-05-18 23:56:45.000000000 +0300
++++ cacti-plugin-rrdclean-0.40/rrdcleaner.php  2010-12-14 09:38:38.595416928 +0200
+@@ -301,7 +301,7 @@
+               $files_db[] = substr(strchr($entry["data_source_path"], "/"),1);
+       }
+-      if(function_exists(glob)) { //needed because this function is not available on all systems
++      if(function_exists('glob')) { //needed because this function is not available on all systems
+               chdir($rra_path);
+               /* get all rrdfiles in two passes */
+               $files_on_hd      = glob("*/*.rrd"); //simply pull all .rrd files out of the directory..
This page took 0.079064 seconds and 4 git commands to generate.