forked from pool/kernel-firmware-qcom
Remove stale *.rpmmoved directories (bsc#1244458) #11
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 21 15:47:24 UTC 2025 - Takashi Iwai <tiwai@suse.com>
|
||||||
|
|
||||||
|
- Remove stale *.rpmmoved directories (bsc#1244458)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 15 07:11:06 UTC 2025 - Takashi Iwai <tiwai@suse.com>
|
Tue Jul 15 07:11:06 UTC 2025 - Takashi Iwai <tiwai@suse.com>
|
||||||
|
|
||||||
|
@@ -30,7 +30,7 @@ License: GPL-2.0-or-later AND SUSE-Firmware
|
|||||||
Group: System/Kernel
|
Group: System/Kernel
|
||||||
URL: https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/
|
URL: https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/
|
||||||
Source0: %{name}-%{version}.tar.xz
|
Source0: %{name}-%{version}.tar.xz
|
||||||
Source1: https://github.com/openSUSE/kernel-firmware-tools/archive/refs/tags/20250710.tar.gz#/kernel-firmware-tools-20250710.tar.gz
|
Source1: https://github.com/openSUSE/kernel-firmware-tools/archive/refs/tags/20250721.tar.gz#/kernel-firmware-tools-20250721.tar.gz
|
||||||
Source2: %{name}-rpmlintrc
|
Source2: %{name}-rpmlintrc
|
||||||
Source3: git_id
|
Source3: git_id
|
||||||
Source10: aliases
|
Source10: aliases
|
||||||
@@ -340,25 +340,21 @@ install -c -D -m 0644 WHENCE %{buildroot}%{_licensedir}/%{name}/WHENCE
|
|||||||
install -c -D -m 0644 README.md %{buildroot}%{_docdir}/%{name}/README.md
|
install -c -D -m 0644 README.md %{buildroot}%{_docdir}/%{name}/README.md
|
||||||
|
|
||||||
%pretrans -p <lua>
|
%pretrans -p <lua>
|
||||||
if not macros then
|
path = "%{_firmwaredir}/qcom/LENOVO/21BX"
|
||||||
fwdir = "/lib/firmware"
|
|
||||||
else
|
|
||||||
fwdir = macros._firmwaredir
|
|
||||||
end
|
|
||||||
path = fwdir .. "/qcom/LENOVO/21BX"
|
|
||||||
st = posix.stat(path)
|
st = posix.stat(path)
|
||||||
if st and st.type == "directory" then
|
if st and st.type == "directory" then
|
||||||
status = os.rename(path, path .. ".rpmmoved")
|
path2 = path .. ".rpmmoved"
|
||||||
if not status then
|
if not os.rename(path, path2) then
|
||||||
suffix = 0
|
print("Cannot rename to " .. path2)
|
||||||
while not status do
|
os.exit(1)
|
||||||
suffix = suffix + 1
|
|
||||||
status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
|
|
||||||
end
|
|
||||||
os.rename(path, path .. ".rpmmoved")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
%posttrans
|
||||||
|
if test -d %{_firmwaredir}/qcom/LENOVO/21BX.rpmmoved; then
|
||||||
|
rm -rf %{_firmwaredir}/qcom/LENOVO/21BX.rpmmoved
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc %{_docdir}/%{name}
|
%doc %{_docdir}/%{name}
|
||||||
%license %{_licensedir}/%{name}
|
%license %{_licensedir}/%{name}
|
||||||
|
BIN
kernel-firmware-tools-20250710.tar.gz
(Stored with Git LFS)
BIN
kernel-firmware-tools-20250710.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
kernel-firmware-tools-20250721.tar.gz
(Stored with Git LFS)
Normal file
BIN
kernel-firmware-tools-20250721.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
24
post
24
post
@@ -1,19 +1,15 @@
|
|||||||
%pretrans -p <lua>
|
%pretrans -p <lua>
|
||||||
if not macros then
|
path = "%{_firmwaredir}/qcom/LENOVO/21BX"
|
||||||
fwdir = "/lib/firmware"
|
|
||||||
else
|
|
||||||
fwdir = macros._firmwaredir
|
|
||||||
end
|
|
||||||
path = fwdir .. "/qcom/LENOVO/21BX"
|
|
||||||
st = posix.stat(path)
|
st = posix.stat(path)
|
||||||
if st and st.type == "directory" then
|
if st and st.type == "directory" then
|
||||||
status = os.rename(path, path .. ".rpmmoved")
|
path2 = path .. ".rpmmoved"
|
||||||
if not status then
|
if not os.rename(path, path2) then
|
||||||
suffix = 0
|
print("Cannot rename to " .. path2)
|
||||||
while not status do
|
os.exit(1)
|
||||||
suffix = suffix + 1
|
|
||||||
status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
|
|
||||||
end
|
|
||||||
os.rename(path, path .. ".rpmmoved")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
%posttrans
|
||||||
|
if test -d %{_firmwaredir}/qcom/LENOVO/21BX.rpmmoved; then
|
||||||
|
rm -rf %{_firmwaredir}/qcom/LENOVO/21BX.rpmmoved
|
||||||
|
fi
|
||||||
|
Reference in New Issue
Block a user