diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2017-10-28 17:30:57 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-11-27 22:56:55 +0100 |
commit | d63670009b42462a9c685b574af107e71ab1ab45 (patch) | |
tree | 88151824bd73ad169a620c17f91865d47574bd42 | |
parent | 306ad0181a329c2d6fda064c2b746f5f4a4aea25 (diff) | |
download | buildroot-d63670009b42462a9c685b574af107e71ab1ab45.tar.gz buildroot-d63670009b42462a9c685b574af107e71ab1ab45.zip |
core/pkg-generic: redirect only when listing package's installed files
There is no need to redirect again and again for each new file added to
the list; we can just redirect once and for all.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/pkg-generic.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index d4cb42d892..ad10a8c903 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -83,8 +83,8 @@ define step_pkg_size_end $(call _step_pkg_size_get_file_list,$($(PKG)_DIR)/.br_filelist_after) comm -13 $($(PKG)_DIR)/.br_filelist_before $($(PKG)_DIR)/.br_filelist_after | \ while read hash file ; do \ - echo "$(1),$${file}" >> $(BUILD_DIR)/packages-file-list.txt ; \ - done + echo "$(1),$${file}" ; \ + done >> $(BUILD_DIR)/packages-file-list.txt rm -f $($(PKG)_DIR)/.br_filelist_before $($(PKG)_DIR)/.br_filelist_after endef |