Skip to content

Commit 3a53732

Browse files
committed
fix(context): correct includes and compile guards for cache age block
Ensure the metadata cache age display compiles on all Fedora targets including WITH_MODULEMD=OFF builds. Signed-off-by: Devesh B <98201065+DeveshB-1@users.noreply.github.com>
1 parent 581875f commit 3a53732

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dnf5/context.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ void Context::Impl::load_repos(bool load_system, bool load_available) {
301301
char date_buf[128];
302302
strftime(date_buf, sizeof(date_buf), "%c", &tm_buf);
303303

304-
print_info(fmt::format(
304+
print_info(libdnf5::utils::sformat(
305305
_("Last metadata expiration check: {}:{:02d}:{:02d} ago on {}."),
306306
hours, mins, secs, date_buf));
307307
}
@@ -1240,3 +1240,4 @@ std::vector<std::string> Context::match_specs(
12401240
}
12411241

12421242
} // namespace dnf5
1243+

0 commit comments

Comments
 (0)