Bug 1143616

Summary: Fillup templates seem to be broken
Product: [openSUSE] openSUSE Tumbleweed Reporter: Andreas Schneider <asn>
Component: BasesystemAssignee: Adam Majer <amajer>
Status: CONFIRMED --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: alynx.zhou, asn, rbrown, tchvatal
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Andreas Schneider 2019-07-31 11:21:53 UTC
I've created a fillup template but it doesn't seem to be possible to install it. All I get is a very strange error:

magrathea:~ # /bin/fillup -q /etc/sysconfig/prometheus /usr/share/fillup-templates/sysconfig.prometheus
        fillup: Exception in ../SRC/services.c, line 348 concerning file not opened


https://build.opensuse.org/request/show/720033
Comment 1 Thorsten Kukuk 2019-07-31 12:40:24 UTC
touch /etc/sysconfig/prometheus
is most likely missing. See the fillup macro how it is called.
Comment 2 Andreas Schneider 2019-07-31 14:23:03 UTC
I've fixed it. I needs to be

%fillup_only -n prometheus


However the error is quite strange. A better error message would be nice :-)
Comment 3 Adam Majer 2019-08-07 14:43:50 UTC
The problem is basically just lack of quoting in fillup_exception() (SRC/services.c:185). Instead of

   fillup: Exception in ../SRC/services.c, line 348 concerning file not opened

it should be,

  fillup: Exception in '../SRC/services.c', line 348 concerning 'file not opened'