* extfs/rpm: Restore legacy RPM tags for backward compatibility.
* extfs/trpm: Likewise.
Этот коммит содержится в:
родитель
56067d3258
Коммит
7564bbd7d4
@ -1,3 +1,9 @@
|
||||
2006-08-01 Leonard den Ottolander <leonard den ottolander nl>
|
||||
|
||||
* 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 <vda.linux@googlemail.com>
|
||||
|
||||
* extfs/urar.in (mcrarfs_copyout): Do not query password
|
||||
|
@ -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;;
|
||||
|
@ -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;;
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user