Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 331305

Summary: www-apps/postfixadmin-2.3.1 bugfix version bump
Product: Gentoo Linux Reporter: renato gallo <renatogallo>
Component: New packagesAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: RESOLVED DUPLICATE    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://sourceforge.net/projects/postfixadmin/files/postfixadmin/postfixadmin-2.3.1/postfixadmin-2.3.1.tar.gz/download
Whiteboard:
Package list:
Runtime testing required: ---

Description renato gallo 2010-08-05 11:31:12 UTC
lots of bugs are solved in this new version

Reproducible: Always

Steps to Reproduce:
1.emerge postfixadmin

Actual Results:  
in portage the newest version is the 2.3

Expected Results:  
I would like to emerge postfixadmin 2.3.1
Comment 1 renato gallo 2010-08-05 11:33:55 UTC
and this is a patch for the last warning about the date function (I paste it here because I am at the office and I do not trust wordpad ):

--- backup.php  2009-10-24 02:11:09.000000000 +0200
+++ backup.php   2010-08-05 13:24:49.0000                                                                                                 00000 +0200
@@ -20,7 +20,8 @@
  *
  * Form POST \ GET Variables: -none-
  */
-
+date_default_timezone_set('Europe/Oslo');
+$date = date_default_timezone_get();
 require_once('common.php');

 authentication_require_role('global-admin');
@@ -55,7 +56,8 @@
 {
    umask (077);
    $path = (ini_get('upload_tmp_dir') != '') ? ini_get('upload_tmp_dir') : '/tm                                                                                                 p';
-   $filename = "postfixadmin-" . date ("Ymd") . "-" . getmypid() . ".sql";
+   #$filename = "postfixadmin-" . date ("Ymd") . "-" . getmypid() . ".sql";
+   $filename = "postfixadmin-" .  date('dmY') ."-" . getmypid() . ".sql";
    $backup = $path . DIRECTORY_SEPARATOR . $filename;

    $header = "#\n# Postfix Admin $version\n# Date: " . date ("D M j G:i:s T Y")                                                                                                  . "\n#\n";
Comment 2 renato gallo 2010-08-05 11:34:27 UTC
I am testing it on my server and it works like a charme without annoying warnings whatsoever
Comment 3 renato gallo 2010-10-03 11:12:23 UTC
bump ?
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2010-10-22 10:02:14 UTC
Thank you for report! I'll resolve this bug as duplicate of 336036 as bug 336036 has attachment to work with (although in reality that bug is duplicate of this :) ). The patch you pasted here does not apply in postfixadmin-2.3.2 and I think is not needed any more.

*** This bug has been marked as a duplicate of bug 336036 ***