diff options
author | ewt <devnull@localhost> | 1997-07-07 22:22:44 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1997-07-07 22:22:44 +0000 |
commit | 94cebfb2fa3f86caec8a854ef257fb34f33ea4ef (patch) | |
tree | 8e8d7814a67a083b523d695079af3d8b3a2ce5a9 /rpmpopt | |
parent | 4fc52f759c02ad82d4df94207956fafad46f47d9 (diff) | |
download | rpm-94cebfb2fa3f86caec8a854ef257fb34f33ea4ef.tar.gz rpm-94cebfb2fa3f86caec8a854ef257fb34f33ea4ef.tar.bz2 rpm-94cebfb2fa3f86caec8a854ef257fb34f33ea4ef.zip |
1) changed popt's ternary operator to work properly
2) popt doesn't take \ at the end of a line as a newline
3) fixed --scripts in rpmpopt to take advantage of #1
CVS patchset: 1732
CVS date: 1997/07/07 22:22:44
Diffstat (limited to 'rpmpopt')
-rw-r--r-- | rpmpopt | 45 |
1 files changed, 28 insertions, 17 deletions
@@ -1,13 +1,24 @@ rpm alias --provides --qf '[%{PROVIDES}\n]' -rpm alias --scripts --qf 'preinstall script:\n%{RPMTAG_PREIN}\ -postinstall script:\ -%{RPMTAG_POSTIN}\ -preuninstall script:\ -%{RPMTAG_PREUN}\ -postuninstall script: %{RPMTAG_POSTUN}\ -verify script:\ -%{VERIFYSCRIPT}\n' +rpm alias --s2 --qf '\ +%|PREIN?{preinstall script\ +%|PREINPROG?{ (through %{PREINPROG})}|:\n%{PREIN}\n}:\ +{%|PREINPROG?{preinstall program: %{PREINPROG}\n}|}|\ +\ +%|POSTIN?{postinstall script\ +%|POSTINPROG?{ (through %{POSTINPROG})}|:\n%{POSTIN}\n}:\ +{%|POSTINPROG?{postinstall program: %{POSTINPROG}\n}|}|\ +\ +%|PREUN?{preuninstall script\ +%|PREUNPROG?{ (through %{PREUNPROG})}|:\n%{PREUN}\n}:\ +{%|PREUNPROG?{preuninstall program: %{PREUNPROG}\n}|}|\ +\ +%|POSTUN?{postuninstall script\ +%|POSTUNPROG?{ (through %{POSTUNPROG})}|:\n%{POSTUN}\n}:\ +{%|POSTUNPROG?{postuninstall program: %{POSTUNPROG}\n}|}|\ +\ +%|VERIFYSCRIPT?{verify script:\n%{VERIFYSCRIPT}\n}|\ +' rpm alias --setperms -q --qf '[%{FILEMODES:octal} %{FILENAMES:shescape}\n]' \ --pipe "grep -v \(none\) | sed 's/^.../chmod /' | sh" @@ -20,15 +31,15 @@ rpm alias --requires --qf \ "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" rpm alias -R --requires -rpm alias --info --qf 'Name : %-27{NAME} Distribution: %{DISTRIBUTION}\ -Version : %-27{VERSION} Vendor: %{VENDOR}\ -Release : %-27{RELEASE} Build Date: %{BUILDTIME:date}\ -Install date: %-27{INSTALLTIME:date} Build Host: %{BUILDHOST}\ -Group : %-27{GROUP} Source RPM: %{SOURCERPM}\ -Size : %{SIZE}\ -Packager : %{PACKAGER}\ -URL : %{URL}\ -Summary : %{SUMMARY}\ +rpm alias --info --qf 'Name : %-27{NAME} Distribution: %{DISTRIBUTION}\n\ +Version : %-27{VERSION} Vendor: %{VENDOR}\n\ +Release : %-27{RELEASE} Build Date: %{BUILDTIME:date}\n\ +Install date: %-27{INSTALLTIME:date} Build Host: %{BUILDHOST}\n\ +Group : %-27{GROUP} Source RPM: %{SOURCERPM}\n\ +Size : %{SIZE}\n\ +Packager : %{PACKAGER}\n\ +URL : %{URL}\n\ +Summary : %{SUMMARY}\n\ Description :\n%{DESCRIPTION}\n' rpm alias --changelog --qf '[* %{CHANGELOGTIME:day} %{CHANGELOGNAME}\n\n%{CHANGELOGTEXT}\n\n]' |