diff options
Diffstat (limited to 'scripts/lib/recipetool/append.py')
-rw-r--r-- | scripts/lib/recipetool/append.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/append.py b/scripts/lib/recipetool/append.py index e9d52bb67b..5f629c07d8 100644 --- a/scripts/lib/recipetool/append.py +++ b/scripts/lib/recipetool/append.py | |||
@@ -49,7 +49,7 @@ def find_target_file(targetpath, d, pkglist=None): | |||
49 | '/etc/group': '/etc/group should be managed through the useradd and extrausers classes', | 49 | '/etc/group': '/etc/group should be managed through the useradd and extrausers classes', |
50 | '/etc/shadow': '/etc/shadow should be managed through the useradd and extrausers classes', | 50 | '/etc/shadow': '/etc/shadow should be managed through the useradd and extrausers classes', |
51 | '/etc/gshadow': '/etc/gshadow should be managed through the useradd and extrausers classes', | 51 | '/etc/gshadow': '/etc/gshadow should be managed through the useradd and extrausers classes', |
52 | '${sysconfdir}/hostname': '${sysconfdir}/hostname contents should be set by setting hostname_pn-base-files = "value" in configuration',} | 52 | '${sysconfdir}/hostname': '${sysconfdir}/hostname contents should be set by setting hostname:pn-base-files = "value" in configuration',} |
53 | 53 | ||
54 | for pthspec, message in invalidtargets.items(): | 54 | for pthspec, message in invalidtargets.items(): |
55 | if fnmatch.fnmatchcase(targetpath, d.expand(pthspec)): | 55 | if fnmatch.fnmatchcase(targetpath, d.expand(pthspec)): |
@@ -79,7 +79,7 @@ def find_target_file(targetpath, d, pkglist=None): | |||
79 | for fullpth in dictval.keys(): | 79 | for fullpth in dictval.keys(): |
80 | if fnmatch.fnmatchcase(fullpth, targetpath): | 80 | if fnmatch.fnmatchcase(fullpth, targetpath): |
81 | recipes[targetpath].append(pn) | 81 | recipes[targetpath].append(pn) |
82 | elif line.startswith('pkg_preinst_') or line.startswith('pkg_postinst_'): | 82 | elif line.startswith('pkg_preinst:') or line.startswith('pkg_postinst:'): |
83 | scriptval = line.split(':', 1)[1].strip().encode('utf-8').decode('unicode_escape') | 83 | scriptval = line.split(':', 1)[1].strip().encode('utf-8').decode('unicode_escape') |
84 | if 'update-alternatives --install %s ' % targetpath in scriptval: | 84 | if 'update-alternatives --install %s ' % targetpath in scriptval: |
85 | recipes[targetpath].append('?%s' % pn) | 85 | recipes[targetpath].append('?%s' % pn) |