diff --git a/vfs/ChangeLog b/vfs/ChangeLog index a50af754e..39789d65e 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,10 @@ +2004-08-18 Pavel S. Shirshov + + * extfs/rpm: Command line parameters fix for UPGRADE. + Fix mcrpmfs_copyout for INFO/OBSOLETES and INFO/LICENSE + + From Leonard den Ottolander + 2004-08-16 Pavel S. Shirshov * extfs/deb.in: Security fix patch. Fix insecure temporary file and diff --git a/vfs/extfs/rpm b/vfs/extfs/rpm index da43491d4..ea16946ef 100644 --- a/vfs/extfs/rpm +++ b/vfs/extfs/rpm @@ -149,6 +149,7 @@ mcrpmfs_copyout () INFO/BUILDTIME) $RPM -qp --qf "%{BUILDTIME:date}\n" "$f" >"$3"; exit 0;; INFO/SERIAL) $RPM -qp --qf "%{SERIAL}\n" "$f" >"$3"; exit 0;; INFO/COPYRIGHT) $RPM -qp --qf "%{COPYRIGHT}\n" "$f" >"$3"; exit 0;; + INFO/LICENSE) $RPM -qp --qf "%{LICENSE}\n" "$f" >"$3"; exit 0;; INFO/RPMVERSION) $RPM -qp --qf "%{RPMVERSION}\n" "$f" >"$3"; exit 0;; INFO/REQUIRENAME) $RPM -qp --qf "[%{REQUIRENAME} %{REQUIREFLAGS:depflags} %{REQUIREVERSION}\n]" "$f" >"$3"; exit 0;; INFO/PROVIDES) $RPM -qp --qf "[%{PROVIDES}\n]" "$f" >"$3"; exit 0;; @@ -162,6 +163,7 @@ mcrpmfs_copyout () INFO/OS) $RPM -qp --qf "%{OS}\n" "$f" > "$3"; exit 0;; INFO/CHANGELOG) $RPM -qp --qf "[* %{CHANGELOGTIME:date} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n]\n" "$f" > "$3"; exit 0;; INFO/SIZE) $RPM -qp --qf "%{SIZE} bytes\n" "$f" > "$3"; exit 0;; + INFO/OBSOLETES) $RPM -qp --qf "[%{OBSOLETENAME} %|OBSOLETEFLAGS?{%{OBSOLETEFLAGS:depflags} %{OBSOLETEVERSION}}:{}|\n]" "$f" > "$3"; exit 0;; CONTENTS.cpio) $RPM2CPIO "$1" > "$3"; exit 0;; *) TMPDIR=/tmp/mctmpdir.$$ @@ -179,7 +181,7 @@ mcrpmfs_run () { case "$2" in INSTALL) echo "Installing \"\"$1\"\""; $RPM -ivh "$1"; exit 0;; - UPGRADE) echo "Upgrading \"\"$1\"\""; $RPM -iUvh "$1"; exit 0;; + UPGRADE) echo "Upgrading \"\"$1\"\""; $RPM -Uvh "$1"; exit 0;; esac }