-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If a given package/pattern in the source machine had been renamed/splitted/removed in the target machine, we need a way to map those packages/patterns into the new packages/patterns. This functionality is expecially helpful for cross-OS migration (i.e. CentOS to openSUSE).
- Loading branch information
Showing
2 changed files
with
107 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# One-to-one package map. Source package version match is optional. If | ||
# specified, the version must match the source package version for the mapping | ||
# to take effect. If source package version is absent, that means it will | ||
# match any version. Likewise, target package version is optional. | ||
# When specified, it will map to a specific target package version. Otherwise, | ||
# it will map to the latest version. | ||
<source package name>: | ||
version: <source package version match> | ||
packages: | ||
- name: <target package name> | ||
version: <target package version> | ||
|
||
# Map a source pattern package. | ||
<source pattern package name> | ||
version: <source pattern package version match> | ||
pattern: yes | ||
packages: | ||
- name: <target pattern package name> | ||
version: <target pattern package version> | ||
pattern: yes | ||
|
||
# One-to-many map. A source package can map to multiple packages and/or | ||
# patterns. | ||
<source package name>: | ||
version: <source package version match> | ||
packages: | ||
- name: <target pattern package name> | ||
version: <target pattern package version> | ||
pattern: yes | ||
- name: <target package name> | ||
version: <target pacakge version> | ||
|
||
# A package without mapping means there are no target packages to map there. | ||
# Therefore, it will be excluded from migration. | ||
<source package name>: | ||
version: <source package version match> | ||
|
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