]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
better fix from @haraldh 212/head
authorpallotron <pallotron@fb.com>
Fri, 31 Mar 2017 11:43:08 +0000 (04:43 -0700)
committerpallotron <pallotron@fb.com>
Fri, 31 Mar 2017 11:43:08 +0000 (04:43 -0700)
Makefile

index 0cfb6cae2209274c5cb02695c8617340bab92300..64b46e75fbbafaf55a11fae56c09aec6b65589fc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -211,7 +211,7 @@ rpm: dracut-$(VERSION).tar.xz syncheck
        rpmbuild --define "_topdir $$PWD" --define "_sourcedir $$PWD" \
                --define "_specdir $$PWD" --define "_srcrpmdir $$PWD" \
                --define "_rpmdir $$PWD" -ba dracut.spec; ) && \
-       ( mv "$$rpmbuild"/*.rpm $(DESTDIR).; mv "$$rpmbuild"/*.src.rpm $(DESTDIR).;rm -fr -- "$$rpmbuild"; ls $(DESTDIR)*.rpm )
+       ( mv "$$rpmbuild"/{,$$(arch)/}*.rpm $(DESTDIR).; rm -fr -- "$$rpmbuild"; ls $(DESTDIR)*.rpm )
 
 syncheck:
        @ret=0;for i in dracut-initramfs-restore.sh modules.d/*/*.sh; do \