Author: dmacvicar
Date: Mon Aug 20 15:27:31 2007
New Revision: 6763
URL: http://svn.opensuse.org/viewcvs/zypp?rev=6763&view=rev
Log:
- add support for the HASH key. (#300982)
- Use ContentFileParser in Downloader (instead of implementing
the parser again, it has a reason, Downloader was written first)
- update testcases and data to cover the new HASH key
Added:
trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/control.xml
trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/installation.xml
trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/license.tar.gz
trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/control.xml
trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/installation.xml
trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/license.tar.gz
Modified:
trunk/libzypp/tests/repo/susetags/Downloader_test.cc
trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/content
trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/content.asc
trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/content
trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/content.asc
trunk/libzypp/zypp/parser/susetags/ContentFileReader.cc
trunk/libzypp/zypp/parser/susetags/RepoIndex.h
trunk/libzypp/zypp/repo/susetags/Downloader.cc
trunk/libzypp/zypp/repo/susetags/Downloader.h
Modified: trunk/libzypp/tests/repo/susetags/Downloader_test.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/repo/susetags/Downloader_test.cc?rev=6763&r1=6762&r2=6763&view=diff
==============================================================================
--- trunk/libzypp/tests/repo/susetags/Downloader_test.cc (original)
+++ trunk/libzypp/tests/repo/susetags/Downloader_test.cc Mon Aug 20 15:27:31 2007
@@ -7,6 +7,7 @@
#include
#include
+#include "zypp/base/Logger.h"
#include "zypp/Url.h"
#include "zypp/PathInfo.h"
#include "zypp/TmpPath.h"
@@ -33,6 +34,8 @@
downloader.download(media,localdir);
+ MIL << "All files downloaded" << endl;
+
const char* files[] =
{
"/suse",
@@ -102,8 +105,10 @@
// "/media.1/products.key",
"/media.1/media",
// "/media.1/products",
-// "/media.1/info.txt",
-// "/media.1/license.zip",
+ "/media.1/info.txt",
+ "/license.tar.gz",
+ "/control.xml",
+ "/installation.xml",
"/gpg-pubkey-a1912208-446a0899.asc",
"/gpg-pubkey-307e3d54-44201d5d.asc",
"/gpg-pubkey-9c800aca-40d8063e.asc",
Modified: trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/content
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/content?rev=6763&r1=6762&r2=6763&view=diff
==============================================================================
--- trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/content (original)
+++ trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/content Mon Aug 20 15:27:31 2007
@@ -35,4 +35,8 @@
KEY SHA1 fd6146cac8c1473c5b52548936de773d5bbd5610 gpg-pubkey-7e2e3b05-44748aba.asc
KEY SHA1 cd7adceba1fe5d7ba27b5749718743192d82f802 gpg-pubkey-9c800aca-40d8063e.asc
KEY SHA1 7535d79e31ef7b4232e5593bb49d9142978b2e95 gpg-pubkey-a1912208-446a0899.asc
+HASH SHA1 172b3cf77268f46e783e78a653902e563cb91e9a license.tar.gz
+HASH SHA1 4aa8ded6302e6ec85690a51af6044dffe9b21923 control.xml
+HASH SHA1 82f1f17ce74f0cd3fca4813c178196b317fc952d installation.xml
+HASH SHA1 68d9b548d61e31e82e8834690e884afa27751287 media.1/info.txt
Modified: trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/content.asc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/content.asc?rev=6763&r1=6762&r2=6763&view=diff
==============================================================================
--- trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/content.asc (original)
+++ trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/content.asc Mon Aug 20 15:27:31 2007
@@ -1,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y52gxjgLeVKelbXaR29df3areuW4fBe5ce2Hl7c+fe2P7Qfdvx7RVz9P
+XvntpW97b4wfgK3PPvzqxdGDax8//OLR77+8//pPZ7daf/74Nw==
+=3cih
-----END PGP MESSAGE-----
Added: trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/control.xml
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/control.xml?rev=6763&view=auto
==============================================================================
--- trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/control.xml (added)
+++ trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/control.xml Mon Aug 20 15:27:31 2007
@@ -0,0 +1,793 @@
+<?xml version="1.0"?>
+http://www.suse.com/1.0/yast2ns"
+ xmlns:config="http://www.suse.com/1.0/configns">
+
+<!--
+Work around for the text domain
+textdomain="control"
+-->
+
+ <textdomain>control</textdomain>
+ <globals>
+
+ true
+ true
+ false
+ never
+ 95
+ true
+ true
+ simple
+ false
+ true
+ true
+ true
+ true
+ false
+ true
+ false
+
+ <!-- FATE #301937, Save /root content from the installation system to the installed system -->
+
+
+ /root/
+ /root/inst-sys/
+
+
+ </globals>
+
+ <software>
+ false
+ auto
+
+ <!-- FATE #300898, List of external sources accesible during the installation time -->
+ http://download.opensuse.org/YaST/Repos/openSUSE_103_Servers.xml
+ </software>
+
+ <partitioning>
+ false
+ true
+ 7G
+ 40
+ 5G
+ 20G
+ false
+ false
+ 15G
+ 25G
+ false
+ </partitioning>
+
+ <network>
+ false
+ laptop
+ <startmode>ifplugd</startmode>
+ </network>
+
+
+ language
+ keyboard
+ timezone
+ users
+ networking
+ firewall
+ host
+ routing
+ proxy
+ runlevel
+ x11
+ nis
+ ldap
+ printer
+ add-on
+
+
+ <texts>
+ <congratulate>
+ <label>
+<p><b>Congratulations!</b></p>
+<p>The installation of openSUSE on your machine is complete.
+After clicking <b>Finish</b>, you can log in to the system.</p>
+<p>Visit us at %1.</p>
+<p>Have a lot of fun!<br>Your openSUSE Development Team</p>
+ </label>
+ </congratulate>
+ </texts>
+
+ <proposals config:type="list">
+ <proposal>
+ <label>Installation Settings</label>
+ <mode>installation,demo,autoinstallation</mode>
+ <stage>initial</stage>
+ <name>initial</name>
+ no
+
+ hwinfo
+ keyboard
+ mouse
+ partitions
+ software
+ bootloader
+ timezone
+ language
+ runlevel
+
+
+
+ <label>Overview</label>
+
+ partitions
+ software_simple
+ country_simple
+
+
+
+ <label>Expert</label>
+
+ hwinfo
+ keyboard
+ mouse
+ partitions
+ software
+ bootloader
+ timezone
+ language
+ runlevel
+
+
+
+ </proposal>
+
+ <proposal>
+ <label>Update Settings</label>
+ <mode>update</mode>
+ <name>initial</name>
+ <stage>normal</stage>
+ no
+
+ update
+ packages
+ backup
+ language
+
+ </proposal>
+
+ <proposal>
+ <label>Installation Settings</label>
+ <mode>update</mode>
+ <stage>initial</stage>
+ <name>initial</name>
+ no
+
+ hwinfo
+ media
+<!-- disabled due to bug 165832
+ <proposal_module>rootpart</proposal_module>
+-->
+ update
+ packages
+ backup
+ language
+ keyboard
+
+ </proposal>
+
+ <proposal>
+ <label>Network Configuration</label>
+ <name>network</name>
+ <stage>continue,normal</stage>
+ yes
+
+
+ <name>lan</name>
+ 20
+
+
+ <name>general</name>
+ 5
+
+
+ <name>dsl</name>
+ 30
+
+
+ <name>isdn</name>
+ 40
+
+
+ <name>modem</name>
+ 50
+
+
+ <name>remote</name>
+ 60
+
+
+ <name>firewall</name>
+ 10
+
+
+ <name>proxy</name>
+ 70
+
+
+ </proposal>
+
+ <proposal>
+ <label>Hardware Configuration</label>
+ <name>hardware</name>
+ <stage>continue</stage>
+ yes
+
+ x11
+ printer
+ sound
+ tv
+ bluetooth
+
+ </proposal>
+ </proposals>
+
+ <!-- Stage: Initial, Mode: Installation -->
+ <workflows config:type="list">
+ <workflow>
+ <defaults>
+ <archs>all</archs>
+ yes
+ yes
+ </defaults>
+ <label>Preparation</label>
+ <mode>installation</mode>
+ <stage>initial</stage>
+ <modules config:type="list">
+ <module>
+ <name>language</name>
+ <label>Language</label>
+ no
+ yes
+ <arguments>
+ yes
+ </arguments>
+ <retranslate config:type="boolean">true</retranslate>
+ </module>
+ <module>
+ <label>Language</label>
+ <name>checkmedia</name>
+ </module>
+ <module>
+ <label>License Agreement</label>
+ <name>license</name>
+ </module>
+ <module>
+ <label>Disk Activation</label>
+ <name>disks_activate</name>
+ </module>
+ <module>
+ <label>System Analysis</label>
+ <name>system_analysis</name>
+ </module>
+ <!-- Here, user selects whether to perform New Installation or Upgrade -->
+ <module>
+ <label>Online Repositories</label>
+ <name>productsources</name>
+ yes
+ </module>
+ <module>
+ <label>Add-On Products</label>
+ <name>add-on</name>
+ yes
+ </module>
+ <module>
+ <label>Time Zone</label>
+ <name>timezone</name>
+ <arguments>
+ yes
+ </arguments>
+ yes
+ </module>
+ <module>
+ <label>Desktop Selection</label>
+ <name>desktop</name>
+ </module>
+ <module>
+ <heading>yes</heading>
+ <label>Installation</label>
+ </module>
+ <module>
+ <label>Installation Settings</label>
+ <name>proposal</name>
+ <proposal>initial</proposal>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>do_resize</name>
+ <update config:type="boolean">false</update>
+ <archs>i386,x86_64,ia64</archs>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>prepdisk</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>kickoff</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>rpmcopy</name>
+ no
+ no
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>finish</name>
+ no
+ </module>
+ </modules>
+ </workflow>
+
+ <!-- Stage: Initial, Mode: Update -->
+ <workflow>
+ <defaults>
+ <archs>all</archs>
+ yes
+ yes
+ </defaults>
+ <label>Preparation</label>
+ <mode>update</mode>
+ <stage>initial</stage>
+ <modules config:type="list">
+ <module>
+ <name>language</name>
+ <label>Language</label>
+ no
+ <arguments>
+ yes
+ </arguments>
+ <retranslate config:type="boolean">true</retranslate>
+ </module>
+ <module>
+ <label>Language</label>
+ <name>checkmedia</name>
+ </module>
+ <module>
+ <label>License Agreement</label>
+ <name>license</name>
+ </module>
+ <module>
+ <label>Disk Activation</label>
+ <name>disks_activate</name>
+ </module>
+ <module>
+ <label>System Analysis</label>
+ <name>system_analysis</name>
+ </module>
+ <module>
+ <label>System for Update</label>
+ <name>update_partition</name>
+ </module>
+ <module>
+ <name>upgrade_urls</name>
+ </module>
+ <module>
+ <label>Online Repositories</label>
+ <name>productsources</name>
+ yes
+ </module>
+ <module>
+ <label>Add-On Products</label>
+ <name>add-on</name>
+ yes
+ </module>
+ <module>
+ <heading>yes</heading>
+ <label>Update</label>
+ </module>
+ <module>
+ <label>Update Settings</label>
+ <name>proposal</name>
+ <proposal>initial</proposal>
+ </module>
+ <module>
+ <label>Perform Update</label>
+ <name>do_resize</name>
+ <update config:type="boolean">false</update>
+ <archs>i386,x86_64,ia64</archs>
+ </module>
+ <module>
+ <label>Perform Update</label>
+ <name>prepdisk</name>
+ </module>
+ <module>
+ <label>Perform Update</label>
+ <name>kickoff</name>
+ </module>
+ <module>
+ <label>Perform Update</label>
+ <name>rpmcopy</name>
+ no
+ no
+ </module>
+ <module>
+ <label>Perform Update</label>
+ <name>finish</name>
+ no
+ </module>
+ </modules>
+ </workflow>
+ <workflow>
+ <defaults>
+ <archs>all</archs>
+ </defaults>
+ <stage>initial</stage>
+ <label>Preparation</label>
+ <mode>repair</mode>
+ <modules config:type="list">
+ <module>
+ <label>System Information</label>
+ <name>info</name>
+ </module>
+ <module>
+ <label>Perform Repair</label>
+ <name>repair</name>
+ </module>
+ </modules>
+ </workflow>
+
+ <!-- Stage: Initial, Mode: ScreenShot -->
+ <workflow>
+ <defaults>
+ <archs>all</archs>
+ yes
+ yes
+ </defaults>
+ <stage>initial</stage>
+ <label>Base Installation</label>
+ <mode>screen_shot</mode>
+ <modules config:type="list">
+ <module>
+ no
+ yes
+ <label>Language</label>
+ <name>language</name>
+ <retranslate config:type="boolean">true</retranslate>
+ </module>
+ <module>
+ <label>Installation Settings</label>
+ <name>proposal</name>
+ <proposal>initial</proposal>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>do_resize</name>
+ <update config:type="boolean">false</update>
+ <archs>i386,x86_64,ia64</archs>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>prepdisk</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>kickoff</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>rpmcopy</name>
+ no
+ yes
+ </module>
+ </modules>
+ </workflow>
+
+ <!-- Stage: Initial, Mode: Demo -->
+ <workflow>
+ <defaults>
+ <archs>all</archs>
+ yes
+ yes
+ </defaults>
+ <stage>initial</stage>
+ <label>Base Installation</label>
+ <mode>demo</mode>
+ <modules config:type="list">
+ <module>
+ no
+ <label>Language</label>
+ <name>language</name>
+ <retranslate config:type="boolean">true</retranslate>
+ </module>
+ <module>
+ <label>Installation Settings</label>
+ <name>proposal</name>
+ <proposal>initial</proposal>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>do_resize</name>
+ <update config:type="boolean">false</update>
+ <archs>i386,x86_64,ia64</archs>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>prepdisk</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>kickoff</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>rpmcopy</name>
+ no
+ no
+ </module>
+ </modules>
+ </workflow>
+
+ <!-- Stage: Continue, Mode: Update -->
+ <workflow>
+ <stage>continue</stage>
+ <mode>update</mode>
+ <defaults>
+ <archs>all</archs>
+ yes
+ yes
+ </defaults>
+ <modules config:type="list">
+ <module>
+ <label>Perform Update</label>
+ <name>rpmcopy</name>
+ no
+ no
+ </module>
+ <module>
+ <heading>yes</heading>
+ <label>Configuration</label>
+ </module>
+ <module>
+ <label>Network</label>
+ <name>ask_net_test</name>
+ no
+ </module>
+ <module>
+ <label>Network</label>
+ <name>do_net_test</name>
+ </module>
+ <module>
+ <label>Registration</label>
+ <name>addon_update_sources</name>
+ </module>
+ <module>
+ <label>Registration</label>
+ <name>suse_register</name>
+ </module>
+ <module>
+ <label>Online Update</label>
+ <name>ask_online_update</name>
+ </module>
+ <module>
+ <label>Online Update</label>
+ <name>you</name>
+ </module>
+ <module>
+ <label>Online Update</label>
+ <name>restore_settings</name>
+ </module>
+ <module>
+ <name>suseconfig</name>
+ no
+ no
+ </module>
+ <module>
+ <label>Release Notes</label>
+ <name>release_notes</name>
+ </module>
+ <module>
+ <name>congratulate</name>
+ </module>
+ </modules>
+ </workflow>
+
+ <!-- Stage: Continue, Mode: Installation -->
+ <workflow>
+ <stage>continue</stage>
+ <mode>installation</mode>
+ <defaults>
+ yes
+ yes
+ <archs>all</archs>
+ </defaults>
+ <modules config:type="list">
+ <module>
+ <heading>yes</heading>
+ <label>Configuration</label>
+ </module>
+ <module>
+ <label>root Password</label>
+ <name>root</name>
+ no
+ </module>
+ <module>
+ <label>Check Installation</label>
+ <name>initialization</name>
+ no
+ no
+ </module>
+ <module>
+ <label>Check Installation</label>
+ <name>netprobe</name>
+ no
+ no
+ </module>
+ <module>
+ <label>Check Installation</label>
+ <name>rpmcopy</name>
+ no
+ no
+ </module>
+ <module>
+ <label>Hostname</label>
+ <name>hostname</name>
+ </module>
+ <module>
+ <label>Network</label>
+ <name>proposal</name>
+ <proposal>network</proposal>
+ </module>
+ <module>
+ <label>Network</label>
+ <name>fam</name>
+ </module>
+ <module>
+ <label>Network</label>
+ <name>ask_net_test</name>
+ </module>
+ <module>
+ <label>Network</label>
+ <name>do_net_test</name>
+ </module>
+ <module>
+ <label>Registration</label>
+ <name>addon_update_sources</name>
+ </module>
+ <module>
+ <label>Registration</label>
+ <name>suse_register</name>
+ </module>
+ <module>
+ <label>Online Update</label>
+ <name>ask_online_update</name>
+ </module>
+ <module>
+ <label>Online Update</label>
+ <name>you</name>
+ </module>
+ <module>
+ <label>Online Update</label>
+ <name>extrasources</name>
+ </module>
+ <module>
+ <label>Online Update</label>
+ <name>restore_settings</name>
+ </module>
+ <module>
+ <label>Users</label>
+ <name>auth</name>
+ </module>
+ <module>
+ <label>Users</label>
+ <name>user</name>
+ </module>
+ <module>
+ <name>suseconfig</name>
+ no
+ no
+ </module>
+ <module>
+ <label>Release Notes</label>
+ <name>release_notes</name>
+ </module>
+ <module>
+ <label>Hardware Configuration</label>
+ <name>proposal</name>
+ <proposal>hardware</proposal>
+ </module>
+ <module>
+ <label>Hardware Configuration</label>
+ <name>save_hardware_status</name>
+ </module>
+ <module>
+ <name>congratulate</name>
+ </module>
+ </modules>
+ </workflow>
+
+ <!-- Stage: Initial, Mode: AutoInstallation -->
+ <workflow>
+ <stage>initial</stage>
+ <label>Base Installation</label>
+ <mode>autoinstallation</mode>
+ <defaults>
+ <archs>all</archs>
+ no
+ no
+ </defaults>
+ <modules config:type="list">
+ <module>
+ <label>AutoYaST Settings</label>
+ <name>autoinit</name>
+ <archs>all</archs>
+ <retranslate config:type="boolean">true</retranslate>
+ </module>
+ <module>
+ <label>AutoYaST Settings</label>
+ <name>autosetup</name>
+ </module>
+ <module>
+ <label>AutoYaST Settings</label>
+ <name>proposal</name>
+ <proposal>initial</proposal>
+ no
+ yes
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>prepdisk</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>kickoff</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>autoimage</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>rpmcopy</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>finish</name>
+ </module>
+ </modules>
+ </workflow>
+
+ <!-- Stage: Continue, Mode: AutoInstallation -->
+ <workflow>
+ <defaults>
+ <archs>all</archs>
+ no
+ no
+ </defaults>
+ <stage>continue</stage>
+ <mode>autoinstallation</mode>
+ <modules config:type="list">
+ <module>
+ <label>Perform Installation</label>
+ <name>netprobe</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>autopost</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>rpmcopy</name>
+ </module>
+ <module>
+ <heading>yes</heading>
+ <label>Configuration</label>
+ </module>
+ <module>
+ <label>System Configuration</label>
+ <name>autoconfigure</name>
+ </module>
+ <module>
+ <name>suseconfig</name>
+ </module>
+ </modules>
+ </workflow>
+ </workflows>
+</productDefines>
Added: trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/installation.xml
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/installation.xml?rev=6763&view=auto
==============================================================================
--- trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/installation.xml (added)
+++ trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/installation.xml Mon Aug 20 15:27:31 2007
@@ -0,0 +1,109 @@
+<?xml version="1.0"?>
+<!DOCTYPE productDefines SYSTEM "/usr/share/YaST2/control/control.dtd">
+<productDefines xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
+ <textdomain>control-ISSLE</textdomain>
+ <globals>
+ false
+ </globals>
+ <software>
+ auto
+ </software>
+ <network>
+ true
+ </network>
+ <texts>
+ <congratulate>
+ <label>
+<p>
+You have successfully installed the Integrated Stack for SUSE Linux Enterprise.
+</p>
+<p>
+The services you just installed might require additional
+setup before use. See the Integrated Stack for SUSE Linux Enterprise
+Installation guide for details.
+</p>
+ </label>
+ </congratulate>
+ </texts>
+ <proposals config:type="list">
+ <proposal>
+ <label>ISSLE Configuration</label>
+ <name>product</name>
+ <stage>continue,normal</stage>
+ <mode>installation</mode>
+
+ yast2-issleconfig
+
+ </proposal>
+ </proposals>
+ <workflows config:type="list">
+ <workflow>
+ <defaults>
+ no
+ no
+ </defaults>
+ <stage>normal</stage>
+ <mode>installation,normal</mode>
+ <modules config:type="list">
+ <module>
+ <label>ISSLE Software Selection</label>
+ <name>sw_single</name>
+ yes
+ yes
+ </module>
+ <module>
+ <label>ISSLE Configuration</label>
+ <name>issleconfig</name>
+ yes
+ yes
+ </module>
+ <module>
+ <label>Release Notes</label>
+ <name>inst_release_notes</name>
+ yes
+ yes
+ </module>
+ <module>
+ <name>inst_congratulate</name>
+ no
+ yes
+ </module>
+ </modules>
+ </workflow>
+ </workflows>
+ <update>
+ <workflows config:type="list">
+ <workflow>
+ <defaults>
+ no
+ no
+ </defaults>
+ <stage>continue,normal</stage>
+ <mode>installation,normal,update</mode>
+
+ hostname
+ root
+ ca_mgm
+
+
+ <module>
+ <name>yast2-issleconfig</name>
+ </module>
+
+
+
+ <before>suseconfig</before>
+ <modules config:type="list">
+ <module>
+ <label>ISSLE Configuration</label>
+ <name>issleconfig</name>
+ yes
+ yes
+ </module>
+ </modules>
+
+
+ </workflow>
+ </workflows>
+ </update>
+</productDefines>
Added: trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/license.tar.gz
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/license.tar.gz?rev=6763&view=auto
==============================================================================
Files trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/license.tar.gz (added) and trunk/libzypp/tests/repo/susetags/data/stable-x86-subset-gz/license.tar.gz Mon Aug 20 15:27:31 2007 differ
Modified: trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/content
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/content?rev=6763&r1=6762&r2=6763&view=diff
==============================================================================
--- trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/content (original)
+++ trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/content Mon Aug 20 15:27:31 2007
@@ -35,4 +35,8 @@
KEY SHA1 fd6146cac8c1473c5b52548936de773d5bbd5610 gpg-pubkey-7e2e3b05-44748aba.asc
KEY SHA1 cd7adceba1fe5d7ba27b5749718743192d82f802 gpg-pubkey-9c800aca-40d8063e.asc
KEY SHA1 7535d79e31ef7b4232e5593bb49d9142978b2e95 gpg-pubkey-a1912208-446a0899.asc
+HASH SHA1 172b3cf77268f46e783e78a653902e563cb91e9a license.tar.gz
+HASH SHA1 4aa8ded6302e6ec85690a51af6044dffe9b21923 control.xml
+HASH SHA1 82f1f17ce74f0cd3fca4813c178196b317fc952d installation.xml
+HASH SHA1 68d9b548d61e31e82e8834690e884afa27751287 media.1/info.txt
Modified: trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/content.asc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/content.asc?rev=6763&r1=6762&r2=6763&view=diff
==============================================================================
--- trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/content.asc (original)
+++ trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/content.asc Mon Aug 20 15:27:31 2007
@@ -1,29 +1,32 @@
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.6 (GNU/Linux)
-owGdVTuIJFUUHXeVhYJFNhAMn2AguN39/p9F0Zrpmg+202tX9TgbDe9XM+3MVDVd
-1cyOGhhqIGhiogxGBoogiGwqJoJgbqBmZgaCiaGvuqfd7lVZWGhe0XXvOe/dc05V
-fXD96tqVGx///t03v3wl9h778tq+uWbLovZFvXnxVHx70O8ONzJQjn2RDtOklWtb
-l5PzaC8ZpDv9XYBgm0TdnTRbdKbT0NUbFdO7rTSL13tJa1/yWccSBLcpXqLa7fYH
-oKEHvZ3d4T64PSnd1NYV2Do12zfB7tRPCuMnhzfBlp+c6uI8GiS93X6WpMNBDxzV
-9fhWp3N2dtauppVv2/K0M/EnRVn7qjMikncWp+9sxhtZf3CnKXtd+daspz0Zn0bx
-YGO7fVfyA07B5WXEJQcj1iy0WQITKEo9sUfz7nn9YU3sIXX6/yXywN1ushkPe9l6
-HIRqKIMKrw13Bkl6357LwcCLM2PAWNd10O6WCfeq86r2p1HwaW+nGzDjuci3Ftg5
-pnEm6q+n/V6SLTU1DQdzc/6Fe2EOjEJ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grMPNjpRcCYuuAZUUJ4TQGGOQ8mUHKBk2EVWRC8zjkFy0W4yKkwFYbRCA86CWvi
+2nAKomCsRGIxgHmYsmgvcgYqAgumzmQkNGB+kTMFSbj01mtPuGJegGgCiJkMUSk4
+jHNBSIIvcKoI5Tks4JyKa+vsRU4flA3Qf5akKIJylionFDeKaMUZMTRoCo7SC5zG
+a4ytt3WOg8aSxcdqFwyoTGQkJuhGCjIIEMM5boIhnBqlHYXGv8BpiSGUYvCIS4u1
+Maec261se0lKFHXMw3BQqROXUWkGXysFMxj4JfPOkGhA0PHIw9MhNko7b+zfXaHg
+1uoQg2QAkNFrIQ22gtgkK4dTijCCUDHMTfVfPp+OG8eT8QoelCCJKJgYnrAPLHmY
+JJgBoqpWhA5TyRtBYfpHeVHa8dhWj6THSKSGSQfXwMtKIE2j1ozDSWDlNoH+ShCq
+YXgmMYxsgzRHeZo2yuOyVvv4zSvPrFUvGOdvHlcv7369dv/mg2voz8/ev/Ti7R+u
+vfyFunb8x88frd133z544eFPv3y49v3ll1595bcf//rkrYd/Aw==
+=/aaM
-----END PGP MESSAGE-----
Added: trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/control.xml
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/control.xml?rev=6763&view=auto
==============================================================================
--- trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/control.xml (added)
+++ trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/control.xml Mon Aug 20 15:27:31 2007
@@ -0,0 +1,793 @@
+<?xml version="1.0"?>
+http://www.suse.com/1.0/yast2ns"
+ xmlns:config="http://www.suse.com/1.0/configns">
+
+<!--
+Work around for the text domain
+textdomain="control"
+-->
+
+ <textdomain>control</textdomain>
+ <globals>
+
+ true
+ true
+ false
+ never
+ 95
+ true
+ true
+ simple
+ false
+ true
+ true
+ true
+ true
+ false
+ true
+ false
+
+ <!-- FATE #301937, Save /root content from the installation system to the installed system -->
+
+
+ /root/
+ /root/inst-sys/
+
+
+ </globals>
+
+ <software>
+ false
+ auto
+
+ <!-- FATE #300898, List of external sources accesible during the installation time -->
+ http://download.opensuse.org/YaST/Repos/openSUSE_103_Servers.xml
+ </software>
+
+ <partitioning>
+ false
+ true
+ 7G
+ 40
+ 5G
+ 20G
+ false
+ false
+ 15G
+ 25G
+ false
+ </partitioning>
+
+ <network>
+ false
+ laptop
+ <startmode>ifplugd</startmode>
+ </network>
+
+
+ language
+ keyboard
+ timezone
+ users
+ networking
+ firewall
+ host
+ routing
+ proxy
+ runlevel
+ x11
+ nis
+ ldap
+ printer
+ add-on
+
+
+ <texts>
+ <congratulate>
+ <label>
+<p><b>Congratulations!</b></p>
+<p>The installation of openSUSE on your machine is complete.
+After clicking <b>Finish</b>, you can log in to the system.</p>
+<p>Visit us at %1.</p>
+<p>Have a lot of fun!<br>Your openSUSE Development Team</p>
+ </label>
+ </congratulate>
+ </texts>
+
+ <proposals config:type="list">
+ <proposal>
+ <label>Installation Settings</label>
+ <mode>installation,demo,autoinstallation</mode>
+ <stage>initial</stage>
+ <name>initial</name>
+ no
+
+ hwinfo
+ keyboard
+ mouse
+ partitions
+ software
+ bootloader
+ timezone
+ language
+ runlevel
+
+
+
+ <label>Overview</label>
+
+ partitions
+ software_simple
+ country_simple
+
+
+
+ <label>Expert</label>
+
+ hwinfo
+ keyboard
+ mouse
+ partitions
+ software
+ bootloader
+ timezone
+ language
+ runlevel
+
+
+
+ </proposal>
+
+ <proposal>
+ <label>Update Settings</label>
+ <mode>update</mode>
+ <name>initial</name>
+ <stage>normal</stage>
+ no
+
+ update
+ packages
+ backup
+ language
+
+ </proposal>
+
+ <proposal>
+ <label>Installation Settings</label>
+ <mode>update</mode>
+ <stage>initial</stage>
+ <name>initial</name>
+ no
+
+ hwinfo
+ media
+<!-- disabled due to bug 165832
+ <proposal_module>rootpart</proposal_module>
+-->
+ update
+ packages
+ backup
+ language
+ keyboard
+
+ </proposal>
+
+ <proposal>
+ <label>Network Configuration</label>
+ <name>network</name>
+ <stage>continue,normal</stage>
+ yes
+
+
+ <name>lan</name>
+ 20
+
+
+ <name>general</name>
+ 5
+
+
+ <name>dsl</name>
+ 30
+
+
+ <name>isdn</name>
+ 40
+
+
+ <name>modem</name>
+ 50
+
+
+ <name>remote</name>
+ 60
+
+
+ <name>firewall</name>
+ 10
+
+
+ <name>proxy</name>
+ 70
+
+
+ </proposal>
+
+ <proposal>
+ <label>Hardware Configuration</label>
+ <name>hardware</name>
+ <stage>continue</stage>
+ yes
+
+ x11
+ printer
+ sound
+ tv
+ bluetooth
+
+ </proposal>
+ </proposals>
+
+ <!-- Stage: Initial, Mode: Installation -->
+ <workflows config:type="list">
+ <workflow>
+ <defaults>
+ <archs>all</archs>
+ yes
+ yes
+ </defaults>
+ <label>Preparation</label>
+ <mode>installation</mode>
+ <stage>initial</stage>
+ <modules config:type="list">
+ <module>
+ <name>language</name>
+ <label>Language</label>
+ no
+ yes
+ <arguments>
+ yes
+ </arguments>
+ <retranslate config:type="boolean">true</retranslate>
+ </module>
+ <module>
+ <label>Language</label>
+ <name>checkmedia</name>
+ </module>
+ <module>
+ <label>License Agreement</label>
+ <name>license</name>
+ </module>
+ <module>
+ <label>Disk Activation</label>
+ <name>disks_activate</name>
+ </module>
+ <module>
+ <label>System Analysis</label>
+ <name>system_analysis</name>
+ </module>
+ <!-- Here, user selects whether to perform New Installation or Upgrade -->
+ <module>
+ <label>Online Repositories</label>
+ <name>productsources</name>
+ yes
+ </module>
+ <module>
+ <label>Add-On Products</label>
+ <name>add-on</name>
+ yes
+ </module>
+ <module>
+ <label>Time Zone</label>
+ <name>timezone</name>
+ <arguments>
+ yes
+ </arguments>
+ yes
+ </module>
+ <module>
+ <label>Desktop Selection</label>
+ <name>desktop</name>
+ </module>
+ <module>
+ <heading>yes</heading>
+ <label>Installation</label>
+ </module>
+ <module>
+ <label>Installation Settings</label>
+ <name>proposal</name>
+ <proposal>initial</proposal>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>do_resize</name>
+ <update config:type="boolean">false</update>
+ <archs>i386,x86_64,ia64</archs>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>prepdisk</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>kickoff</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>rpmcopy</name>
+ no
+ no
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>finish</name>
+ no
+ </module>
+ </modules>
+ </workflow>
+
+ <!-- Stage: Initial, Mode: Update -->
+ <workflow>
+ <defaults>
+ <archs>all</archs>
+ yes
+ yes
+ </defaults>
+ <label>Preparation</label>
+ <mode>update</mode>
+ <stage>initial</stage>
+ <modules config:type="list">
+ <module>
+ <name>language</name>
+ <label>Language</label>
+ no
+ <arguments>
+ yes
+ </arguments>
+ <retranslate config:type="boolean">true</retranslate>
+ </module>
+ <module>
+ <label>Language</label>
+ <name>checkmedia</name>
+ </module>
+ <module>
+ <label>License Agreement</label>
+ <name>license</name>
+ </module>
+ <module>
+ <label>Disk Activation</label>
+ <name>disks_activate</name>
+ </module>
+ <module>
+ <label>System Analysis</label>
+ <name>system_analysis</name>
+ </module>
+ <module>
+ <label>System for Update</label>
+ <name>update_partition</name>
+ </module>
+ <module>
+ <name>upgrade_urls</name>
+ </module>
+ <module>
+ <label>Online Repositories</label>
+ <name>productsources</name>
+ yes
+ </module>
+ <module>
+ <label>Add-On Products</label>
+ <name>add-on</name>
+ yes
+ </module>
+ <module>
+ <heading>yes</heading>
+ <label>Update</label>
+ </module>
+ <module>
+ <label>Update Settings</label>
+ <name>proposal</name>
+ <proposal>initial</proposal>
+ </module>
+ <module>
+ <label>Perform Update</label>
+ <name>do_resize</name>
+ <update config:type="boolean">false</update>
+ <archs>i386,x86_64,ia64</archs>
+ </module>
+ <module>
+ <label>Perform Update</label>
+ <name>prepdisk</name>
+ </module>
+ <module>
+ <label>Perform Update</label>
+ <name>kickoff</name>
+ </module>
+ <module>
+ <label>Perform Update</label>
+ <name>rpmcopy</name>
+ no
+ no
+ </module>
+ <module>
+ <label>Perform Update</label>
+ <name>finish</name>
+ no
+ </module>
+ </modules>
+ </workflow>
+ <workflow>
+ <defaults>
+ <archs>all</archs>
+ </defaults>
+ <stage>initial</stage>
+ <label>Preparation</label>
+ <mode>repair</mode>
+ <modules config:type="list">
+ <module>
+ <label>System Information</label>
+ <name>info</name>
+ </module>
+ <module>
+ <label>Perform Repair</label>
+ <name>repair</name>
+ </module>
+ </modules>
+ </workflow>
+
+ <!-- Stage: Initial, Mode: ScreenShot -->
+ <workflow>
+ <defaults>
+ <archs>all</archs>
+ yes
+ yes
+ </defaults>
+ <stage>initial</stage>
+ <label>Base Installation</label>
+ <mode>screen_shot</mode>
+ <modules config:type="list">
+ <module>
+ no
+ yes
+ <label>Language</label>
+ <name>language</name>
+ <retranslate config:type="boolean">true</retranslate>
+ </module>
+ <module>
+ <label>Installation Settings</label>
+ <name>proposal</name>
+ <proposal>initial</proposal>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>do_resize</name>
+ <update config:type="boolean">false</update>
+ <archs>i386,x86_64,ia64</archs>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>prepdisk</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>kickoff</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>rpmcopy</name>
+ no
+ yes
+ </module>
+ </modules>
+ </workflow>
+
+ <!-- Stage: Initial, Mode: Demo -->
+ <workflow>
+ <defaults>
+ <archs>all</archs>
+ yes
+ yes
+ </defaults>
+ <stage>initial</stage>
+ <label>Base Installation</label>
+ <mode>demo</mode>
+ <modules config:type="list">
+ <module>
+ no
+ <label>Language</label>
+ <name>language</name>
+ <retranslate config:type="boolean">true</retranslate>
+ </module>
+ <module>
+ <label>Installation Settings</label>
+ <name>proposal</name>
+ <proposal>initial</proposal>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>do_resize</name>
+ <update config:type="boolean">false</update>
+ <archs>i386,x86_64,ia64</archs>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>prepdisk</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>kickoff</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>rpmcopy</name>
+ no
+ no
+ </module>
+ </modules>
+ </workflow>
+
+ <!-- Stage: Continue, Mode: Update -->
+ <workflow>
+ <stage>continue</stage>
+ <mode>update</mode>
+ <defaults>
+ <archs>all</archs>
+ yes
+ yes
+ </defaults>
+ <modules config:type="list">
+ <module>
+ <label>Perform Update</label>
+ <name>rpmcopy</name>
+ no
+ no
+ </module>
+ <module>
+ <heading>yes</heading>
+ <label>Configuration</label>
+ </module>
+ <module>
+ <label>Network</label>
+ <name>ask_net_test</name>
+ no
+ </module>
+ <module>
+ <label>Network</label>
+ <name>do_net_test</name>
+ </module>
+ <module>
+ <label>Registration</label>
+ <name>addon_update_sources</name>
+ </module>
+ <module>
+ <label>Registration</label>
+ <name>suse_register</name>
+ </module>
+ <module>
+ <label>Online Update</label>
+ <name>ask_online_update</name>
+ </module>
+ <module>
+ <label>Online Update</label>
+ <name>you</name>
+ </module>
+ <module>
+ <label>Online Update</label>
+ <name>restore_settings</name>
+ </module>
+ <module>
+ <name>suseconfig</name>
+ no
+ no
+ </module>
+ <module>
+ <label>Release Notes</label>
+ <name>release_notes</name>
+ </module>
+ <module>
+ <name>congratulate</name>
+ </module>
+ </modules>
+ </workflow>
+
+ <!-- Stage: Continue, Mode: Installation -->
+ <workflow>
+ <stage>continue</stage>
+ <mode>installation</mode>
+ <defaults>
+ yes
+ yes
+ <archs>all</archs>
+ </defaults>
+ <modules config:type="list">
+ <module>
+ <heading>yes</heading>
+ <label>Configuration</label>
+ </module>
+ <module>
+ <label>root Password</label>
+ <name>root</name>
+ no
+ </module>
+ <module>
+ <label>Check Installation</label>
+ <name>initialization</name>
+ no
+ no
+ </module>
+ <module>
+ <label>Check Installation</label>
+ <name>netprobe</name>
+ no
+ no
+ </module>
+ <module>
+ <label>Check Installation</label>
+ <name>rpmcopy</name>
+ no
+ no
+ </module>
+ <module>
+ <label>Hostname</label>
+ <name>hostname</name>
+ </module>
+ <module>
+ <label>Network</label>
+ <name>proposal</name>
+ <proposal>network</proposal>
+ </module>
+ <module>
+ <label>Network</label>
+ <name>fam</name>
+ </module>
+ <module>
+ <label>Network</label>
+ <name>ask_net_test</name>
+ </module>
+ <module>
+ <label>Network</label>
+ <name>do_net_test</name>
+ </module>
+ <module>
+ <label>Registration</label>
+ <name>addon_update_sources</name>
+ </module>
+ <module>
+ <label>Registration</label>
+ <name>suse_register</name>
+ </module>
+ <module>
+ <label>Online Update</label>
+ <name>ask_online_update</name>
+ </module>
+ <module>
+ <label>Online Update</label>
+ <name>you</name>
+ </module>
+ <module>
+ <label>Online Update</label>
+ <name>extrasources</name>
+ </module>
+ <module>
+ <label>Online Update</label>
+ <name>restore_settings</name>
+ </module>
+ <module>
+ <label>Users</label>
+ <name>auth</name>
+ </module>
+ <module>
+ <label>Users</label>
+ <name>user</name>
+ </module>
+ <module>
+ <name>suseconfig</name>
+ no
+ no
+ </module>
+ <module>
+ <label>Release Notes</label>
+ <name>release_notes</name>
+ </module>
+ <module>
+ <label>Hardware Configuration</label>
+ <name>proposal</name>
+ <proposal>hardware</proposal>
+ </module>
+ <module>
+ <label>Hardware Configuration</label>
+ <name>save_hardware_status</name>
+ </module>
+ <module>
+ <name>congratulate</name>
+ </module>
+ </modules>
+ </workflow>
+
+ <!-- Stage: Initial, Mode: AutoInstallation -->
+ <workflow>
+ <stage>initial</stage>
+ <label>Base Installation</label>
+ <mode>autoinstallation</mode>
+ <defaults>
+ <archs>all</archs>
+ no
+ no
+ </defaults>
+ <modules config:type="list">
+ <module>
+ <label>AutoYaST Settings</label>
+ <name>autoinit</name>
+ <archs>all</archs>
+ <retranslate config:type="boolean">true</retranslate>
+ </module>
+ <module>
+ <label>AutoYaST Settings</label>
+ <name>autosetup</name>
+ </module>
+ <module>
+ <label>AutoYaST Settings</label>
+ <name>proposal</name>
+ <proposal>initial</proposal>
+ no
+ yes
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>prepdisk</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>kickoff</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>autoimage</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>rpmcopy</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>finish</name>
+ </module>
+ </modules>
+ </workflow>
+
+ <!-- Stage: Continue, Mode: AutoInstallation -->
+ <workflow>
+ <defaults>
+ <archs>all</archs>
+ no
+ no
+ </defaults>
+ <stage>continue</stage>
+ <mode>autoinstallation</mode>
+ <modules config:type="list">
+ <module>
+ <label>Perform Installation</label>
+ <name>netprobe</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>autopost</name>
+ </module>
+ <module>
+ <label>Perform Installation</label>
+ <name>rpmcopy</name>
+ </module>
+ <module>
+ <heading>yes</heading>
+ <label>Configuration</label>
+ </module>
+ <module>
+ <label>System Configuration</label>
+ <name>autoconfigure</name>
+ </module>
+ <module>
+ <name>suseconfig</name>
+ </module>
+ </modules>
+ </workflow>
+ </workflows>
+</productDefines>
Added: trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/installation.xml
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/installation.xml?rev=6763&view=auto
==============================================================================
--- trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/installation.xml (added)
+++ trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/installation.xml Mon Aug 20 15:27:31 2007
@@ -0,0 +1,109 @@
+<?xml version="1.0"?>
+<!DOCTYPE productDefines SYSTEM "/usr/share/YaST2/control/control.dtd">
+<productDefines xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
+ <textdomain>control-ISSLE</textdomain>
+ <globals>
+ false
+ </globals>
+ <software>
+ auto
+ </software>
+ <network>
+ true
+ </network>
+ <texts>
+ <congratulate>
+ <label>
+<p>
+You have successfully installed the Integrated Stack for SUSE Linux Enterprise.
+</p>
+<p>
+The services you just installed might require additional
+setup before use. See the Integrated Stack for SUSE Linux Enterprise
+Installation guide for details.
+</p>
+ </label>
+ </congratulate>
+ </texts>
+ <proposals config:type="list">
+ <proposal>
+ <label>ISSLE Configuration</label>
+ <name>product</name>
+ <stage>continue,normal</stage>
+ <mode>installation</mode>
+
+ yast2-issleconfig
+
+ </proposal>
+ </proposals>
+ <workflows config:type="list">
+ <workflow>
+ <defaults>
+ no
+ no
+ </defaults>
+ <stage>normal</stage>
+ <mode>installation,normal</mode>
+ <modules config:type="list">
+ <module>
+ <label>ISSLE Software Selection</label>
+ <name>sw_single</name>
+ yes
+ yes
+ </module>
+ <module>
+ <label>ISSLE Configuration</label>
+ <name>issleconfig</name>
+ yes
+ yes
+ </module>
+ <module>
+ <label>Release Notes</label>
+ <name>inst_release_notes</name>
+ yes
+ yes
+ </module>
+ <module>
+ <name>inst_congratulate</name>
+ no
+ yes
+ </module>
+ </modules>
+ </workflow>
+ </workflows>
+ <update>
+ <workflows config:type="list">
+ <workflow>
+ <defaults>
+ no
+ no
+ </defaults>
+ <stage>continue,normal</stage>
+ <mode>installation,normal,update</mode>
+
+ hostname
+ root
+ ca_mgm
+
+
+ <module>
+ <name>yast2-issleconfig</name>
+ </module>
+
+
+
+ <before>suseconfig</before>
+ <modules config:type="list">
+ <module>
+ <label>ISSLE Configuration</label>
+ <name>issleconfig</name>
+ yes
+ yes
+ </module>
+ </modules>
+
+
+ </workflow>
+ </workflows>
+ </update>
+</productDefines>
Added: trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/license.tar.gz
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/license.tar.gz?rev=6763&view=auto
==============================================================================
Files trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/license.tar.gz (added) and trunk/libzypp/tests/repo/susetags/data/stable-x86-subset/license.tar.gz Mon Aug 20 15:27:31 2007 differ
Modified: trunk/libzypp/zypp/parser/susetags/ContentFileReader.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/parser/susetags/ContentFileReader.cc?rev=6763&r1=6762&r2=6763&view=diff
==============================================================================
--- trunk/libzypp/zypp/parser/susetags/ContentFileReader.cc (original)
+++ trunk/libzypp/zypp/parser/susetags/ContentFileReader.cc Mon Aug 20 15:27:31 2007
@@ -473,7 +473,7 @@
{
if ( _pimpl->setFileCheckSum( _pimpl->repoindex().signingKeys, value ) )
{
- ZYPP_THROW( ParseException( errPrefix( line.lineNo(), "Expected [algorithm checksum filename]", *line ) ) );
+ ZYPP_THROW( ParseException( errPrefix( line.lineNo(), "Expected [KEY algorithm checksum filename]", *line ) ) );
}
}
else if ( key == "LANGUAGE" )
@@ -496,6 +496,13 @@
ZYPP_THROW( ParseException( errPrefix( line.lineNo(), "Expected [algorithm checksum filename]", *line ) ) );
}
}
+ else if ( key == "HASH" )
+ {
+ if ( _pimpl->setFileCheckSum( _pimpl->repoindex().mediaFileChecksums, value ) )
+ {
+ ZYPP_THROW( ParseException( errPrefix( line.lineNo(), "Expected [algorithm checksum filename]", *line ) ) );
+ }
+ }
else if ( key == "TIMEZONE" )
{
_pimpl->repoindex().timezone = value;
Modified: trunk/libzypp/zypp/parser/susetags/RepoIndex.h
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/parser/susetags/RepoIndex.h?rev=6763&r1=6762&r2=6763&view=diff
==============================================================================
--- trunk/libzypp/zypp/parser/susetags/RepoIndex.h (original)
+++ trunk/libzypp/zypp/parser/susetags/RepoIndex.h Mon Aug 20 15:27:31 2007
@@ -60,6 +60,7 @@
Pathname datadir;
FileChecksumMap metaFileChecksums;
+ FileChecksumMap mediaFileChecksums;
FileChecksumMap signingKeys;
protected:
Modified: trunk/libzypp/zypp/repo/susetags/Downloader.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/repo/susetags/Downloader.cc?rev=6763&r1=6762&r2=6763&view=diff
==============================================================================
--- trunk/libzypp/zypp/repo/susetags/Downloader.cc (original)
+++ trunk/libzypp/zypp/repo/susetags/Downloader.cc Mon Aug 20 15:27:31 2007
@@ -10,11 +10,14 @@
#include "zypp/Locale.h"
#include "zypp/ZConfig.h"
#include "zypp/repo/MediaInfoDownloader.h"
-
#include "zypp/repo/susetags/Downloader.h"
+#include "zypp/parser/ParseException.h"
+#include "zypp/parser/susetags/RepoIndex.h"
#include "zypp/base/UserRequestException.h"
using namespace std;
+using namespace zypp::parser;
+using namespace zypp::parser::susetags;
namespace zypp
{
@@ -67,116 +70,125 @@
this->start( dest_dir, media );
this->reset();
- std::ifstream file((dest_dir + _path + "/content").asString().c_str());
- std::string buffer;
Pathname descr_dir;
- // FIXME Note this code assumes DESCR comes before as META
- string value;
- while (file && !file.eof())
+ // Content file first to get the repoindex
+ {
+ Pathname inputfile( dest_dir + _path + "/content" );
+ ContentFileReader content;
+ content.setRepoIndexConsumer( bind( &Downloader::consumeIndex, this, _1 ) );
+ content.parse( inputfile );
+ }
+ if ( ! _repoindex )
+ {
+ ZYPP_THROW( ParseException( (dest_dir+_path).asString() + ": " + "No reository index in content file." ) );
+ }
+
+ // Prepare parsing
+ descr_dir = _repoindex->descrdir; // path below reporoot
+ //_datadir = _repoIndex->datadir; // path below reporoot
+
+ for ( RepoIndex::FileChecksumMap::const_iterator it = _repoindex->metaFileChecksums.begin();
+ it != _repoindex->metaFileChecksums.end();
+ ++it )
{
- getline(file, buffer);
- if ( buffer.substr( 0, 5 ) == "DESCR" )
+ // omit unwanted translations
+ if ( str::hasPrefix( it->first, "packages" ) )
{
- std::vectorstd::string words;
- if ( str::split( buffer, std::back_inserter(words) ) != 2 )
+ std::string rest( str::stripPrefix( it->first, "packages" ) );
+ if ( ! ( rest.empty()
+ || rest == ".DU"
+ || rest == ".en"
+ || rest == ".gz"
+ || rest == ".DU.gz"
+ || rest == ".en.gz" ) )
{
- // error
- ZYPP_THROW(Exception("bad DESCR line"));
+ // Not 100% correct as we take each fallback of textLocale
+ Locale toParse( ZConfig::instance().textLocale() );
+ while ( toParse != Locale::noCode )
+ {
+ if ( rest == ("."+toParse.code()) || (rest == ("."+toParse.code()+".gz")) )
+ break;
+ toParse = toParse.fallback();
+ }
+ if ( toParse == Locale::noCode )
+ {
+ // discard
+ continue;
+ }
}
- descr_dir = words[1];
}
- else if ( buffer.substr( 0, 4 ) == "META" )
+ else if ( str::endsWith( it->first, ".pat" )
+ || str::endsWith( it->first, ".pat.gz" ) )
{
- std::vectorstd::string words;
- if ( str::split( buffer, std::back_inserter(words) ) != 4 )
- {
- // error
- ZYPP_THROW(Exception("bad META line"));
- }
- // omit unwanted translations
- if ( str::hasPrefix( words[3], "packages" ) )
+
+ // *** see also zypp/parser/susetags/RepoParser.cc ***
+
+ // omit unwanted patterns, see https://bugzilla.novell.com/show_bug.cgi?id=298716
+ // expect "<name>.<arch>.pat[.gz]", <name> might contain additional dots
+ // split at dots, take .pat or .pat.gz into account
+
+ std::vectorstd::string patparts;
+ unsigned archpos = 2;
+ // expect "<name>.<arch>.pat[.gz]", <name> might contain additional dots
+ unsigned count = str::split( it->first, std::back_inserter(patparts), "." );
+ if ( patparts[count-1] == "gz" )
+ archpos++;
+
+ if ( count > archpos )
{
- std::string rest( str::stripPrefix( words[3], "packages" ) );
- if ( ! ( rest.empty()
- || rest == ".DU"
- || rest == ".en"
- || rest == ".gz"
- || rest == ".DU.gz"
- || rest == ".en.gz" ) )
+ try // might by an invalid architecture
{
- // Not 100% correct as we take each fallback of textLocale
- Locale toParse( ZConfig::instance().textLocale() );
- while ( toParse != Locale::noCode )
+ Arch patarch( patparts[count-archpos] );
+ if ( !patarch.compatibleWith( ZConfig::instance().systemArchitecture() ) )
{
- if ( rest == ("."+toParse.code()) || (rest == ("."+toParse.code()+".gz")) )
- break;
- toParse = toParse.fallback();
- }
- if ( toParse == Locale::noCode )
- {
- // discard
+ // discard, if not compatible
+ MIL << "Discarding pattern " << it->first << endl;
continue;
}
}
- }
- else if ( str::endsWith( words[3], ".pat" )
- || str::endsWith( words[3], ".pat.gz" ) )
- {
-
- // *** see also zypp/parser/susetags/RepoParser.cc ***
-
- // omit unwanted patterns, see https://bugzilla.novell.com/show_bug.cgi?id=298716
- // expect "<name>.<arch>.pat[.gz]", <name> might contain additional dots
- // split at dots, take .pat or .pat.gz into account
-
- std::vectorstd::string patparts;
- unsigned archpos = 2;
- // expect "<name>.<arch>.pat[.gz]", <name> might contain additional dots
- unsigned count = str::split( buffer, std::back_inserter(patparts), "." );
- if ( patparts[count-1] == "gz" )
- archpos++;
-
- if ( count > archpos )
+ catch ( const Exception & excpt )
{
- try // might by an invalid architecture
- {
- Arch patarch( patparts[count-archpos] );
- if ( !patarch.compatibleWith( ZConfig::instance().systemArchitecture() ) )
- {
- // discard, if not compatible
- MIL << "Discarding pattern " << words[3] << endl;
- continue;
- }
- }
- catch ( const Exception & excpt )
- {
- WAR << "Pattern file name does not contain recognizable architecture: " << words[3] << endl;
- // keep .pat file if it doesn't contain an recognizable arch
- }
+ WAR << "Pattern file name does not contain recognizable architecture: " << it->first << endl;
+ // keep .pat file if it doesn't contain an recognizable arch
}
}
- OnMediaLocation location( _path + descr_dir + words[3], 1 );
- location.setChecksum( CheckSum( words[1], words[2] ) );
- this->enqueueDigested(location);
- }
- else if (buffer.substr( 0, 3 ) == "KEY")
- {
- std::vectorstd::string words;
- if ( str::split( buffer, std::back_inserter(words) ) != 4 )
- {
- // error
- ZYPP_THROW(Exception("bad KEY line"));
- }
- OnMediaLocation location( _path + words[3], 1 );
- location.setChecksum( CheckSum( words[1], words[2] ) );
- this->enqueueDigested(location);
}
+ MIL << "adding job " << it->first << endl;
+ OnMediaLocation location( _path + descr_dir + it->first, 1 );
+ location.setChecksum( it->second );
+ this->enqueueDigested(location);
+ }
+
+ for ( RepoIndex::FileChecksumMap::const_iterator it = _repoindex->signingKeys.begin();
+ it != _repoindex->signingKeys.end();
+ ++it )
+ {
+ OnMediaLocation location( _path + it->first, 1 );
+ location.setChecksum( it->second );
+ this->enqueueDigested(location);
+ }
+
+ // add hashed media files
+
+ for ( RepoIndex::FileChecksumMap::const_iterator it = _repoindex->mediaFileChecksums.begin();
+ it != _repoindex->mediaFileChecksums.end();
+ ++it )
+ {
+ OnMediaLocation location( _path + it->first, 1 );
+ location.setChecksum( it->second );
+ this->enqueueDigested(location);
}
- file.close();
+
this->start( dest_dir, media );
}
+void Downloader::consumeIndex( const RepoIndex_Ptr & data_r )
+{
+ MIL << "Consuming repo index" << endl;
+ _repoindex = data_r;
+}
+
}// ns susetags
}// ns source
} // ns zypp
Modified: trunk/libzypp/zypp/repo/susetags/Downloader.h
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/repo/susetags/Downloader.h?rev=6763&r1=6762&r2=6763&view=diff
==============================================================================
--- trunk/libzypp/zypp/repo/susetags/Downloader.h (original)
+++ trunk/libzypp/zypp/repo/susetags/Downloader.h Mon Aug 20 15:27:31 2007
@@ -16,6 +16,7 @@
#include "zypp/RepoStatus.h"
#include "zypp/MediaSetAccess.h"
#include "zypp/repo/Downloader.h"
+#include "zypp/parser/susetags/ContentFileReader.h"
namespace zypp
{
@@ -53,8 +54,15 @@
* \short Status of the remote repository
*/
RepoStatus status( MediaSetAccess &media );
+
+ /**
+ * Content file parser consumer
+ */
+ void consumeIndex( const parser::susetags::RepoIndex_Ptr & data_r );
+
private:
Pathname _path;
+ parser::susetags::RepoIndex_Ptr _repoindex;
};
} // ns susetags
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org