Mailinglist Archive: yast-commit (815 mails)

< Previous Next >
[yast-commit] r40052 - in /trunk/storage: package/yast2-storage.changes storage/src/include/custom_part_lib.ycp
  • From: fehr@xxxxxxxxxxxxxxxx
  • Date: Tue, 07 Aug 2007 10:19:59 -0000
  • Message-id: <20070807102000.27125CDF3A@xxxxxxxxxxxxxxxx>
Author: fehr
Date: Tue Aug  7 12:19:59 2007
New Revision: 40052

URL: http://svn.opensuse.org/viewcvs/yast?rev=40052&view=rev
Log:
install packages needed for formatting of filesystems (#297645)

Modified:
    trunk/storage/package/yast2-storage.changes
    trunk/storage/storage/src/include/custom_part_lib.ycp

Modified: trunk/storage/package/yast2-storage.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/package/yast2-storage.changes?rev=40052&r1=40051&r2=40052&view=diff
==============================================================================
--- trunk/storage/package/yast2-storage.changes (original)
+++ trunk/storage/package/yast2-storage.changes Tue Aug  7 12:19:59 2007
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Tue Aug  7 12:19:26 CEST 2007 - fehr@xxxxxxx
+
+- install packages needed for formatting of filesystems (#297645)
+
+-------------------------------------------------------------------
 Mon Aug  6 14:00:13 CEST 2007 - fehr@xxxxxxx
 
 - add locale option to ntfs-3g entries in fstab (#297607)

Modified: trunk/storage/storage/src/include/custom_part_lib.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/custom_part_lib.ycp?rev=40052&r1=40051&r2=40052&view=diff
==============================================================================
--- trunk/storage/storage/src/include/custom_part_lib.ycp (original)
+++ trunk/storage/storage/src/include/custom_part_lib.ycp Tue Aug  7 12:19:59 2007
@@ -586,6 +586,15 @@
     return( ret );
     }
 
+map pkg_for_fs = $[
+    `ext2 : [ "e2fsprogs" ],
+    `ext3 : [ "e2fsprogs" ],
+    `reiser : [ "reiserfs" ],
+    `vfat : [ "dosfstools" ],
+    `ntfs : [ "ntfsprogs" ],
+    `jfs : [ "jfsutils" ],
+    `xfs : [ "xfsprogs" ] ];
+
 define map<string,any> HandleFsChanged( boolean init, map<string,any> new, 
                                         symbol old_fs, map file_systems )
     ``{
@@ -616,6 +625,17 @@
 
            undo_change = Popup::YesNo(message);
            }
+       if( !undo_change && !Stage::initial() )
+           {
+           if( size(pkg_for_fs[used_fs]:[])>0 )
+               {
+               boolean r = Package::InstallAll( pkg_for_fs[used_fs]:[] );
+               y2milestone( "HandleFsChanged install %1 ret:%2", 
+                            pkg_for_fs[used_fs]:[], r );
+               if( !r )
+                   undo_change = true;
+               }
+           }
        if( undo_change )
            {
            new["used_fs"] = old_fs;

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages