Skip to content

Commit

Permalink
Merge pull request #97 from yast/schema-adapt
Browse files Browse the repository at this point in the history
allow optional string and map types
  • Loading branch information
imobachgs authored May 7, 2020
2 parents e649f33 + ddf62e1 commit d241b56
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 42 deletions.
7 changes: 7 additions & 0 deletions package/yast2-add-on.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu May 7 08:58:18 UTC 2020 - Josef Reidinger <jreidinger@suse.com>

- Autoyast schema: Allow optional types for string and map objects
(bsc#1170886)
- 4.3.0

-------------------------------------------------------------------
Tue Jan 28 09:30:52 CET 2020 - schubi@suse.de

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-add-on.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-add-on
Version: 4.2.15
Version: 4.3.0
Release: 0
Summary: YaST2 - Add-On media installation code
License: GPL-2.0-only
Expand Down
102 changes: 61 additions & 41 deletions src/autoyast-rnc/add-on.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -2,53 +2,73 @@ default namespace = "http://www.suse.com/1.0/yast2ns"
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
namespace config = "http://www.suse.com/1.0/configns"

include "common.rnc"

add-on =
element add-on {
add_on_products* &
add_on_others*
MAP,
(
add_on_products* &
add_on_others*
)
}
listentry =
element listentry {
media_url & # here it is mandatory
product? &
name? &
alias? &
product_dir? &
ask_on_error? &
confirm_license? &
priority? &
element signature-handling {
element accept_unsigned_file { BOOLEAN }? &
element accept_file_without_checksum { BOOLEAN }? &
element accept_verification_failed { BOOLEAN }? &
element accept_unknown_gpg_key {
element all { BOOLEAN }? &
element keys {
LIST,
element keyid { text }*
}?
}? &
element accept_non_trusted_gpg_key {
element all { BOOLEAN }? &
element keys {
LIST,
element keyid { text }*
MAP,
(
media_url & # here it is mandatory
product? &
name? &
alias? &
product_dir? &
ask_on_error? &
confirm_license? &
priority? &
element signature-handling {
MAP,
(
element accept_unsigned_file { BOOLEAN }? &
element accept_file_without_checksum { BOOLEAN }? &
element accept_verification_failed { BOOLEAN }? &
element accept_unknown_gpg_key {
MAP,
(
element all { BOOLEAN }? &
element keys {
LIST,
element keyid { STRING }*
}?
)
}? &
element accept_non_trusted_gpg_key {
MAP,
(
element all { BOOLEAN }? &
element keys {
LIST,
element keyid { STRING }*
}?
)
}? &
element import_gpg_key {
MAP,
(
element all { BOOLEAN }? &
element keys {
LIST,
element keyid { STRING }*
}?
)
}?
}? &
element import_gpg_key {
element all { BOOLEAN }? &
element keys {
LIST,
element keyid { text }*
}?
}?
}?
)
}?
)
}
media_url = element media_url { text }
product = element product { text }
name = element name { text }
alias = element alias { text }
product_dir = element product_dir { text }
media_url = element media_url { STRING }
product = element product { STRING }
name = element name { STRING }
alias = element alias { STRING }
product_dir = element product_dir { STRING }
ask_on_error = element ask_on_error { BOOLEAN }
confirm_license = element confirm_license { BOOLEAN }
priority = element priority { INTEGER }
Expand All @@ -73,4 +93,4 @@ add_on_others =
element add_on_others {
attribute config:type { text }?,
listentry*
}
}

0 comments on commit d241b56

Please sign in to comment.