From 7564bbd7d41a03d994c00ee19c55af1416fcdd44 Mon Sep 17 00:00:00 2001 From: Leonard den Ottolander Date: Tue, 1 Aug 2006 21:03:18 +0000 Subject: [PATCH] * extfs/rpm: Restore legacy RPM tags for backward compatibility. * extfs/trpm: Likewise. --- vfs/ChangeLog | 6 ++++++ vfs/extfs/rpm | 8 ++++++++ vfs/extfs/trpm | 8 ++++++++ 3 files changed, 22 insertions(+) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index d461a6e1c..8e753521d 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,9 @@ +2006-08-01 Leonard den Ottolander + + * extfs/rpm: Restore legacy RPM tags. There's no harm in keeping them + around for backward compatibility. + * extfs/trpm: Likewise. + 2006-07-25 Denis Vlasenko * extfs/urar.in (mcrarfs_copyout): Do not query password diff --git a/vfs/extfs/rpm b/vfs/extfs/rpm index c3bf648b2..0ad740ba4 100644 --- a/vfs/extfs/rpm +++ b/vfs/extfs/rpm @@ -95,6 +95,10 @@ mcrpmfs_list () echo "$FILEPREF 0 $DATE INFO/PACKAGER" test "`$RPM -qp --qf \"%{URL}\" \"$f\"`" = "(none)" || echo "$FILEPREF 0 $DATE INFO/URL" + test "`$RPM -qp --qf \"%{SERIAL}\" \"$f\"`" = "(none)" || + echo "$FILEPREF 0 $DATE INFO/SERIAL" + test "`$RPM -qp --qf \"%{COPYRIGHT}\" \"$f\"`" = "(none)" || + echo "$FILEPREF 0 $DATE INFO/COPYRIGHT" test "`$RPM -qp --qf \"%{EPOCH}\" \"$f\"`" = "(none)" || echo "$FILEPREF 0 $DATE INFO/EPOCH" test "`$RPM -qp --qf \"%{LICENSE}\" \"$f\"`" = "(none)" || @@ -102,6 +106,8 @@ mcrpmfs_list () else echo "$FILEPREF 0 $DATE INFO/PACKAGER" echo "$FILEPREF 0 $DATE INFO/URL" + echo "$FILEPREF 0 $DATE INFO/SERIAL" + echo "$FILEPREF 0 $DATE INFO/COPYRIGHT" echo "$FILEPREF 0 $DATE INFO/EPOCH" echo "$FILEPREF 0 $DATE INFO/LICENSE" fi @@ -147,6 +153,8 @@ mcrpmfs_copyout () INFO/PACKAGER) $RPM -qp --qf "%{PACKAGER}\n" "$f" > "$3"; exit 0;; INFO/URL) $RPM -qp --qf "%{URL}\n" "$f" >"$3"; exit 0;; 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/EPOCH) $RPM -qp --qf "%{EPOCH}\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;; diff --git a/vfs/extfs/trpm b/vfs/extfs/trpm index 8efbd0f98..463ab6464 100644 --- a/vfs/extfs/trpm +++ b/vfs/extfs/trpm @@ -85,6 +85,10 @@ mcrpmfs_list () echo "$FILEPREF 0 $DATE INFO/PACKAGER" test "`$RPM -q --qf \"%{URL}\" -- "$1"`" = "(none)" || echo "$FILEPREF 0 $DATE INFO/URL" + test "`$RPM -q --qf \"%{SERIAL}\" -- "$1"`" = "(none)" || + echo "$FILEPREF 0 $DATE INFO/SERIAL" + test "`$RPM -q --qf \"%{COPYRIGHT}\" -- "$1"`" = "(none)" || + echo "$FILEPREF 0 $DATE INFO/COPYRIGHT" test "`$RPM -q --qf \"%{EPOCH}\" -- "$1"`" = "(none)" || echo "$FILEPREF 0 $DATE INFO/EPOCH" test "`$RPM -q --qf \"%{LICENSE}\" -- "$1"`" = "(none)" || @@ -92,6 +96,8 @@ mcrpmfs_list () else echo "$FILEPREF 0 $DATE INFO/PACKAGER" echo "$FILEPREF 0 $DATE INFO/URL" + echo "$FILEPREF 0 $DATE INFO/SERIAL" + echo "$FILEPREF 0 $DATE INFO/COPYRIGHT" echo "$FILEPREF 0 $DATE INFO/EPOCH" echo "$FILEPREF 0 $DATE INFO/LICENSE" fi @@ -134,6 +140,8 @@ mcrpmfs_copyout () INFO/PACKAGER) $RPM -q --qf "%{PACKAGER}\n" -- "$1" > "$3"; exit 0;; INFO/URL) $RPM -q --qf "%{URL}\n" -- "$1" > "$3"; exit 0;; INFO/BUILDTIME) $RPM -q --qf "%{BUILDTIME:date}\n" -- "$1" > "$3"; exit 0;; + INFO/SERIAL) $RPM -q --qf "%{SERIAL}\n" -- "$1" > "$3"; exit 0;; + INFO/COPYRIGHT) $RPM -q --qf "%{COPYRIGHT}\n" -- "$1" > "$3"; exit 0;; INFO/EPOCH) $RPM -q --qf "%{EPOCH}\n" -- "$1" > "$3"; exit 0;; INFO/LICENSE) $RPM -q --qf "%{LICENSE}\n" -- "$1" > "$3"; exit 0;; INFO/RPMVERSION) $RPM -q --qf "%{RPMVERSION}\n" -- "$1" > "$3"; exit 0;;