[vhffs-dev] [svn] commit: r175 - in /trunk: Relases.notes make_release2 vhffs-panel/public/group.pl vhffs-robots/src/fix_quota.pl vhffs-robots/src/refused_cvs.pl |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
- To: vhffs-dev@xxxxxxxxx
- Subject: [vhffs-dev] [svn] commit: r175 - in /trunk: Relases.notes make_release2 vhffs-panel/public/group.pl vhffs-robots/src/fix_quota.pl vhffs-robots/src/refused_cvs.pl
- From: vhffs-dev@xxxxxxxxx
- Date: Tue, 28 Mar 2006 20:02:13 -0000
Author: soda
Date: Tue Mar 28 22:02:11 2006
New Revision: 175
Log:
fix some bugs
Modified:
trunk/Relases.notes
trunk/make_release2
trunk/vhffs-panel/public/group.pl
trunk/vhffs-robots/src/fix_quota.pl
trunk/vhffs-robots/src/refused_cvs.pl
Modified: trunk/Relases.notes
==============================================================================
--- trunk/Relases.notes (original)
+++ trunk/Relases.notes Tue Mar 28 22:02:11 2006
@@ -41,4 +41,8 @@
ALTER TABLE vhffs_boxes ADD COLUMN novirus boolean;
-
+NEW ROBOTS
+-----------
+Be careful if you use cron to run robots (high probability), a new
+bot is available, it updates the quota used for each group.
+The file is called update_quota_used.pl in /usr/lib/vhffs/bots
Modified: trunk/make_release2
==============================================================================
--- trunk/make_release2 (original)
+++ trunk/make_release2 Tue Mar 28 22:02:11 2006
@@ -7,7 +7,7 @@
use File::Copy;
use IO::Handle;
-my $VERSION = "4.0rc9";
+my $VERSION = "4.0rc10";
my @files_to_delete = qw(backup.sh fixperm.sh make_release make_release2 svn-commit);
my @files_to_package = qw( TODO Makefile Changelog AUTHORS vhffs-api vhffs-backend vhffs-doc vhffs-intl vhffs-listengine vhffs-panel vhffs-robots vhffs-shells debian vhffs-tools);
my $VERBOSE = 0;
Modified: trunk/vhffs-panel/public/group.pl
==============================================================================
--- trunk/vhffs-panel/public/group.pl (original)
+++ trunk/vhffs-panel/public/group.pl Tue Mar 28 22:02:11 2006
@@ -118,7 +118,7 @@
{
$subtemplate = new HTML::Template( filename => $templatedir."/public/misc/cvs-part.tmpl" );
$subtemplate->param( CVSROOT => $_->get_cvsroot );
- $subtemplate->param( CVSURL => $vhffs->get_config->get_svnweburl . "/" . $group->get_groupname . "/" . $_->get_cvsroot );
+ $subtemplate->param( CVSURL => $vhffs->get_config->get_cvsweburl . "/" . $group->get_groupname . "/" . $_->get_cvsroot );
$output .= $subtemplate->output;
}
Modified: trunk/vhffs-robots/src/fix_quota.pl
==============================================================================
--- trunk/vhffs-robots/src/fix_quota.pl (original)
+++ trunk/vhffs-robots/src/fix_quota.pl Tue Mar 28 22:02:11 2006
@@ -17,6 +17,8 @@
my $groups = Vhffs::Group::getall( $vhffs , Vhffs::Constants::ACTIVATED );
my $group;
my $blocks;
+my $user;
+my $users;
my $inodes;
my $cmd;
@@ -47,7 +49,7 @@
{
$cmd = "/usr/sbin/setquota -g ".$user->get_gid ." ".$blocks." ".$blocks." ".$inodes." ".$inodes." -a ".$vhffs->get_config->get_datadir;
system( $cmd );
- Vhffs::Robots::vhffs_log( sprintf( "Update quota for user group %s set 1" , $user->get_groupname ) );
+ Vhffs::Robots::vhffs_log( sprintf( "Update quota for user group %s set 1" , $user->get_username ) );
}
}
}
Modified: trunk/vhffs-robots/src/refused_cvs.pl
==============================================================================
--- trunk/vhffs-robots/src/refused_cvs.pl (original)
+++ trunk/vhffs-robots/src/refused_cvs.pl Tue Mar 28 22:02:11 2006
@@ -23,7 +23,7 @@
$vhffs = init Vhffs::Main;
-Vhffs::Robots::lock( $vhffs ));
+Vhffs::Robots::lock( $vhffs );
$objects = Vhffs::Services::Cvs::getall( $vhffs , Vhffs::Constants::VALIDATION_REFUSED );
bindtextdomain("vhffs", $vhffs->get_config->get_intldir);