]> git.donarmstrong.com Git - infobot.git/commitdiff
temp dir unified
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 10 Dec 2000 12:51:01 +0000 (12:51 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 10 Dec 2000 12:51:01 +0000 (12:51 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@189 c11ca15a-4712-0410-83d8-924469b57eb5

src/Modules/Freshmeat.pl
src/Modules/Kernel.pl
src/Modules/Slashdot3.pl

index df78405dbbe9729d4108fbb0cf3345ce3c409f20..2ecd143b8a48784922a66a9bf1043cd81083b9f9 100644 (file)
@@ -99,7 +99,7 @@ sub showPackage {
 
 sub downloadIndex {
     my $start_time     = &main::gettimeofday(); # set the start time.
-    my $idx            = "$main::bot_base_dir/Temp/fm_index.txt";
+    my $idx            = "$main::param{tempDir}/fm_index.txt";
 
     &main::msg($main::who, "Updating freshmeat index... please wait");
 
@@ -194,7 +194,7 @@ sub downloadIndex {
 }
 
 sub freshmeatAnnounce {
-    my $file = "$main::bot_base_dir/Temp/fm_recent.txt";
+    my $file = "$main::param{tempDir}/fm_recent.txt";
     my @old;
 
     ### if file exists, lets read it.
index 588b2c62be32039238b6e328ac13ce85b7f3056a..d3bff0390400bf0e4d2f64983e9d1811d8754ce4 100644 (file)
@@ -67,7 +67,7 @@ sub Kernel {
 }
 
 sub kernelAnnounce {
-    my $file = "$main::bot_base_dir/Temp/kernel.txt";
+    my $file = "$main::param{tempDir}/kernel.txt";
     my @now  = &kernelGetInfo();
     my @old;
 
index f8f3a67c8493df4e78c26c66cd2cfe1d3471705d..90fb56e473a3665d4839531845bad6ffc90b54eb 100644 (file)
@@ -46,7 +46,7 @@ sub Slashdot {
 }
 
 sub slashdotAnnounce {
-    my $file = "Temp/slashdot.xml";
+    my $file = "$main::param{tempDir}/slashdot.xml";
 
     my @Cxml = &main::getURL("http://www.slashdot.org/slashdot.xml");
     if (!scalar @Cxml) {