Skip to content

Commit

Permalink
fix writing _modulemd.yaml (#1025)
Browse files Browse the repository at this point in the history
the used MODULEMDFILE is available in TOPDIR/SOURCES at that time,
the /.build-srcdir where the variable points to is long gone
when the file is to be used as input for writemodulemd
  • Loading branch information
bugfinder committed Sep 3, 2024
1 parent ec45dec commit cb845fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,7 @@ done

if test -n "$MODULEMDFILE" ; then
mkdir -p "$BUILD_ROOT/$TOPDIR/OTHER"
find "$BUILD_ROOT/$TOPDIR/RPMS" "$BUILD_ROOT/$TOPDIR/SRPMS" -type f -name "*.rpm" | sort | $BUILD_DIR/writemodulemd ${DISTURL:+--disturl "$DISTURL"} "$MODULEMDFILE" - > "$BUILD_ROOT/$TOPDIR/OTHER/_modulemd.yaml"
find "$BUILD_ROOT/$TOPDIR/RPMS" "$BUILD_ROOT/$TOPDIR/SRPMS" -type f -name "*.rpm" | sort | $BUILD_DIR/writemodulemd ${DISTURL:+--disturl "$DISTURL"} "$BUILD_ROOT/$TOPDIR/SOURCES/${MODULEMDFILE##*/}" - > "$BUILD_ROOT/$TOPDIR/OTHER/_modulemd.yaml"
test -s "$BUILD_ROOT/$TOPDIR/OTHER/_modulemd.yaml" || rm -f "$BUILD_ROOT/$TOPDIR/OTHER/_modulemd.yaml"
fi

Expand Down

0 comments on commit cb845fd

Please sign in to comment.