mirror of
https://abf.rosa.ru/djam/samba.git
synced 2025-02-24 01:22:47 +00:00
23 lines
849 B
Bash
Executable file
23 lines
849 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Create a table to automatically obsolete old packages by new ones
|
|
# This VERY UGLY script will probably be never ran again (ran it when updating samba from 4.6 to 4.9)
|
|
# Author: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
|
|
|
|
while read -r line
|
|
do
|
|
#echo "$line"
|
|
line_nosubdir="$(echo "$line" | sed -e 's,/samba,,g')"
|
|
sudo chroot /mnt/rosa-2016.1 /bin/rpm -qf --queryformat '%{NAME}\n' "$line" 2>/dev/null || \
|
|
sudo chroot /mnt/rosa-2016.1 /bin/rpm -qf --queryformat '%{NAME}\n' "$line_nosubdir"
|
|
done < <(cat autopkg.spec.in | grep '^%{_libdir}' | sed -e "s,%{_libdir},$(rpm --eval %{_libdir}),g" -e 's/\*//')
|
|
|
|
# lib64samba-credentials0
|
|
# lib64samba-errors1
|
|
# lib64samba-hostconfig0
|
|
# lib64samba-passdb0
|
|
# lib64samba-policy0
|
|
# lib64samba-server0
|
|
# lib64samba-util0
|
|
# lib64smbclient-devel
|
|
# lib64smbconf0
|
|
# lib64tevent-util0
|