summaryrefslogtreecommitdiff
path: root/solenv/bin/modules/installer/worker.pm
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2010-12-13 20:56:37 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2010-12-13 20:57:08 +0100
commit2b454c24f5e148e1b73739dd58bf59e6f714c112 (patch)
tree5911b757caf4e156828a9096736aadde95597187 /solenv/bin/modules/installer/worker.pm
parent0a356550e0e78c9f2b7e98bdaade2d698f23a11f (diff)
Teach the perl monster to create helppacks
Diffstat (limited to 'solenv/bin/modules/installer/worker.pm')
-rw-r--r--solenv/bin/modules/installer/worker.pm27
1 files changed, 26 insertions, 1 deletions
diff --git a/solenv/bin/modules/installer/worker.pm b/solenv/bin/modules/installer/worker.pm
index 3c5ecd67eac3..6e85f853597b 100644
--- a/solenv/bin/modules/installer/worker.pm
+++ b/solenv/bin/modules/installer/worker.pm
@@ -1218,7 +1218,7 @@ sub select_patch_items_without_name
}
###########################################################
-# Selecting patch items
+# Selecting langpack items
###########################################################
sub select_langpack_items
@@ -1243,6 +1243,31 @@ sub select_langpack_items
}
###########################################################
+# Selecting helppack items
+###########################################################
+
+sub select_helppack_items
+{
+ my ( $itemsref, $itemname ) = @_;
+
+ installer::logger::include_header_into_logfile("Selecting RegistryItems for Help Packs");
+
+ my @itemsarray = ();
+
+ for ( my $i = 0; $i <= $#{$itemsref}; $i++ )
+ {
+ my $oneitem = ${$itemsref}[$i];
+
+ # Items with style "HELPPACK" have to be included into the patch
+ my $styles = "";
+ if ( $oneitem->{'Styles'} ) { $styles = $oneitem->{'Styles'}; }
+ if (( $styles =~ /\bHELPPACK\b/ ) || ( $styles =~ /\bFORCEHELPPACK\b/ )) { push(@itemsarray, $oneitem); }
+ }
+
+ return \@itemsarray;
+}
+
+###########################################################
# Searching if LICENSE and README, which are not removed
# in select_patch_items are really needed for the patch.
# If not, they are removed now.