The diff command exits 1 if there is a difference between 2 files.
This is perfectly valid so ignore the exit code for this command.
Change-Id: I0da9d6bb99a5a0a9666697b27416fa5e5518e316
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
--- /dev/null
+---
+fixes:
+ - |
+ Fix package listing script in post-builder from causing UNSTABLE build due
+ to difference in the two files being compared.
if ( [ -f "${START_PACKAGES}" ] && [ -f "${END_PACKAGES}" ] )
then
- diff "${START_PACKAGES}" "${END_PACKAGES}" > "${DIFF_PACKAGES}"
+ # ` || true` Ignore exit code because diff exits 1 when there is a diff
+ diff "${START_PACKAGES}" "${END_PACKAGES}" > "${DIFF_PACKAGES}" || true
fi
# If running in a Jenkins job, then copy the created files to the archives