-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compose_kiwi_description: check for changed files
Check generated files for changes compared to existing ones and delete unchanged files. Add option to check existing image description for stale files (i.e. files not generated by the new image definition), and remove those (enabled by default). Do not abort anymore if the generated change log has no new entries, but base decision to abort or proceed on result of the above checks.
- Loading branch information
1 parent
c89397f
commit 04dcae4
Showing
17 changed files
with
670 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- | ||
some comment | ||
--> | ||
|
||
<!-- some other comment --> | ||
|
||
<!-- | ||
Some long text | ||
and more text--> | ||
|
||
<image schemaversion="7.3" name="KEG"> | ||
<description type="system"> | ||
<author>Public Cloud Team</author> | ||
<contact>[email protected]</contact> | ||
<specification>KEG generated image</specification> | ||
</description> | ||
<preferences> | ||
<version>1.2.3</version> | ||
<packagemanager>zypper</packagemanager> | ||
<locale>en_US</locale> | ||
<keytable>us.map.gz</keytable> | ||
<timezone>UTC</timezone> | ||
<type image="oem" filesystem="btrfs" firmware="efi"> | ||
<oemconfig> | ||
<oem-multipath-scan>false</oem-multipath-scan> | ||
<oem-swap>true</oem-swap> | ||
</oemconfig> | ||
</type> | ||
</preferences> | ||
<repository> | ||
<source path="obs://path/to/project"/> | ||
</repository> | ||
<packages type="image"> | ||
<!-- some inline comment --> | ||
<package name="joe"/> | ||
</packages> | ||
<packages type="bootstrap"> | ||
<package name="udev"/> | ||
<package name="filesystem"/> | ||
<package name="glibc-locale"/> | ||
</packages> | ||
</image> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- | ||
some comment | ||
--> | ||
|
||
<!-- some other comment --> | ||
|
||
<!-- | ||
Some long text | ||
and more text--> | ||
|
||
<image schemaversion="7.3" name="KEG"> | ||
<description type="system"> | ||
<author>Public Cloud Team</author> | ||
<contact>[email protected]</contact> | ||
<specification>KEG generated image</specification> | ||
</description> | ||
<preferences> | ||
<version>1.2.4</version> | ||
<packagemanager>zypper</packagemanager> | ||
<locale>en_US</locale> | ||
<keytable>us.map.gz</keytable> | ||
<timezone>UTC</timezone> | ||
<type image="oem" filesystem="btrfs" firmware="efi"> | ||
<oemconfig> | ||
<oem-multipath-scan>false</oem-multipath-scan> | ||
<oem-swap>true</oem-swap> | ||
</oemconfig> | ||
</type> | ||
</preferences> | ||
<repository> | ||
<source path="obs://path/to/project"/> | ||
</repository> | ||
<packages type="image"> | ||
<!-- some inline comment --> | ||
<package name="joe"/> | ||
</packages> | ||
<packages type="bootstrap"> | ||
<package name="udev"/> | ||
<package name="filesystem"/> | ||
<package name="glibc-locale"/> | ||
</packages> | ||
</image> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- | ||
some comment | ||
--> | ||
|
||
<!-- some other comment --> | ||
|
||
<!-- | ||
Some long text | ||
and more text--> | ||
|
||
<image schemaversion="7.3" name="KEG"> | ||
<description type="system"> | ||
<author>Public Cloud Team</author> | ||
<contact>[email protected]</contact> | ||
<specification>KEG generated image2</specification> | ||
</description> | ||
<preferences> | ||
<version>1.2.3</version> | ||
<packagemanager>zypper</packagemanager> | ||
<locale>en_US</locale> | ||
<keytable>us.map.gz</keytable> | ||
<timezone>UTC</timezone> | ||
<type image="oem" filesystem="btrfs" firmware="efi"> | ||
<oemconfig> | ||
<oem-multipath-scan>false</oem-multipath-scan> | ||
<oem-swap>true</oem-swap> | ||
</oemconfig> | ||
</type> | ||
</preferences> | ||
<repository> | ||
<source path="obs://path/to/project"/> | ||
</repository> | ||
<packages type="image"> | ||
<!-- some inline comment --> | ||
<package name="joe"/> | ||
</packages> | ||
<packages type="bootstrap"> | ||
<package name="udev"/> | ||
<package name="filesystem"/> | ||
<package name="glibc-locale"/> | ||
</packages> | ||
</image> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bar |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- | ||
some comment | ||
--> | ||
|
||
<!-- some other comment --> | ||
|
||
<!-- | ||
Some long text | ||
and more text--> | ||
|
||
<image schemaversion="7.3" name="KEG"> | ||
<description type="system"> | ||
<author>Public Cloud Team</author> | ||
<contact>[email protected]</contact> | ||
<specification>KEG generated image</specification> | ||
</description> | ||
<preferences> | ||
<version>1.2.3</version> | ||
<packagemanager>zypper</packagemanager> | ||
<locale>en_US</locale> | ||
<keytable>us.map.gz</keytable> | ||
<timezone>UTC</timezone> | ||
<type image="oem" filesystem="btrfs" firmware="efi"> | ||
<oemconfig> | ||
<oem-multipath-scan>false</oem-multipath-scan> | ||
<oem-swap>true</oem-swap> | ||
</oemconfig> | ||
</type> | ||
</preferences> | ||
<repository> | ||
<source path="obs://path/to/project"/> | ||
</repository> | ||
<packages type="image"> | ||
<!-- some inline comment --> | ||
<package name="joe"/> | ||
</packages> | ||
<packages type="bootstrap"> | ||
<package name="udev"/> | ||
<package name="filesystem"/> | ||
<package name="glibc-locale"/> | ||
</packages> | ||
</image> |
Oops, something went wrong.