* extfs/rpm (mcrpmfs_list): Use cpio for the listing since the
rpm output varies between versions. (mcrpmfs_copyout): Fix processing of CONTENTS.cpio. Match filenames beginning with "./" - they are used in the version 4 packages.
Этот коммит содержится в:
родитель
4816107a02
Коммит
d2026648fe
@ -1,3 +1,11 @@
|
|||||||
|
2001-04-19 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* extfs/rpm (mcrpmfs_list): Use cpio for the listing since the
|
||||||
|
rpm output varies between versions.
|
||||||
|
(mcrpmfs_copyout): Fix processing of CONTENTS.cpio. Match
|
||||||
|
filenames beginning with "./" - they are used in the version 4
|
||||||
|
packages.
|
||||||
|
|
||||||
2001-04-17 Pavel Roskin <proski@gnu.org>
|
2001-04-17 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* fish.c (open_archive_int): Redirect stderr of start_fish_server
|
* fish.c (open_archive_int): Redirect stderr of start_fish_server
|
||||||
|
@ -113,7 +113,7 @@ mcrpmfs_list ()
|
|||||||
echo "$FILEPREF 0 $DATE INFO/CHANGELOG"
|
echo "$FILEPREF 0 $DATE INFO/CHANGELOG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rpm -qlvp "$1" | sed -e 's/^\(..........\)[-t]* /\1 1 /'
|
rpm2cpio "$1" | cpio -tv --quiet
|
||||||
echo "$FILEPREF 0 $DATE CONTENTS.cpio"
|
echo "$FILEPREF 0 $DATE CONTENTS.cpio"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,16 +150,16 @@ mcrpmfs_copyout ()
|
|||||||
INFO/OS) rpm -qp --qf "%{OS}\n" "$1" > "$3"; exit 0;;
|
INFO/OS) rpm -qp --qf "%{OS}\n" "$1" > "$3"; exit 0;;
|
||||||
INFO/CHANGELOG) rpm -qp --qf "[* %{CHANGELOGTIME:date} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n]\n" "$1" > "$3"; exit 0;;
|
INFO/CHANGELOG) rpm -qp --qf "[* %{CHANGELOGTIME:date} %{CHANGELOGNAME}\n%{CHANGELOGTEXT}\n\n]\n" "$1" > "$3"; exit 0;;
|
||||||
INFO/SIZE) rpm -qp --qf "%{SIZE} bytes\n" "$1" > "$3"; exit 0;;
|
INFO/SIZE) rpm -qp --qf "%{SIZE} bytes\n" "$1" > "$3"; exit 0;;
|
||||||
|
CONTENTS.cpio) rpm2cpio "$1" > "$3"; exit 0;;
|
||||||
*)
|
*)
|
||||||
TMPDIR=/tmp/mctmpdir.$$
|
TMPDIR=/tmp/mctmpdir.$$
|
||||||
mkdir $TMPDIR || exit 1
|
mkdir $TMPDIR || exit 1
|
||||||
cd $TMPDIR
|
cd $TMPDIR
|
||||||
rpm2cpio "$1" | cpio -iumd --quiet "$2" >/dev/null
|
# Files in RPM version 4 and above start with "./" - try both
|
||||||
mv "$2" "$3"
|
rpm2cpio "$1" | cpio -iumd --quiet "$2" "./$2" >/dev/null
|
||||||
|
mv "$2" "$3" 2>/dev/null
|
||||||
cd /
|
cd /
|
||||||
rm -rf $TMPDIR;;
|
rm -rf $TMPDIR;;
|
||||||
|
|
||||||
CONTENTS.cpio) rpm2cpio "$1" > "$3"; exit 0;;
|
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user