Fix minor profile loading issue
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 28s

This commit is contained in:
ferreo 2025-01-16 15:58:44 +00:00
parent d0c1cffe8f
commit efb2043ec9
4 changed files with 12 additions and 8 deletions

View File

@ -1 +1 @@
2 1

View File

@ -1,3 +1,9 @@
falcond (1.0.7-101pika1) pika; urgency=low
* Don't load profiles in subfolders
-- ferreo <ferreo@pika-os.com> Sun, 12 Jan 2025 13:48:00 +0300
falcond (1.0.6-101pika1) pika; urgency=low falcond (1.0.6-101pika1) pika; urgency=low
* Add handheld and htpc profiles, split system processes config to live in the profiles repo for easier updates * Add handheld and htpc profiles, split system processes config to live in the profiles repo for easier updates

View File

@ -30,12 +30,10 @@ pub fn loadConfDir(comptime T: type, allocator: std.mem.Allocator, dir_path: []c
var dir = try std.fs.openDirAbsolute(dir_path, .{ .iterate = true }); var dir = try std.fs.openDirAbsolute(dir_path, .{ .iterate = true });
defer dir.close(); defer dir.close();
var walker = try dir.walk(allocator); var iter = dir.iterate();
defer walker.deinit(); while (try iter.next()) |entry| {
if (entry.kind == .file and std.mem.endsWith(u8, entry.name, ".conf")) {
while (try walker.next()) |entry| { const path = try std.fs.path.join(allocator, &.{ dir_path, entry.name });
if (entry.kind == .file and std.mem.endsWith(u8, entry.path, ".conf")) {
const path = try std.fs.path.join(allocator, &.{ dir_path, entry.path });
defer allocator.free(path); defer allocator.free(path);
const file = try std.fs.openFileAbsolute(path, .{}); const file = try std.fs.openFileAbsolute(path, .{});

View File

@ -2,7 +2,7 @@
set -e set -e
VERSION="1.0.6" VERSION="1.0.7"
source ./pika-build-config.sh source ./pika-build-config.sh