Fix minor profile loading issue

This commit is contained in:
ferreo 2025-01-16 15:58:44 +00:00
parent d0c1cffe8f
commit 61fadee441
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
* 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 });
defer dir.close();
var walker = try dir.walk(allocator);
defer walker.deinit();
while (try walker.next()) |entry| {
if (entry.kind == .file and std.mem.endsWith(u8, entry.path, ".conf")) {
const path = try std.fs.path.join(allocator, &.{ dir_path, entry.path });
var iter = dir.iterate();
while (try iter.next()) |entry| {
if (entry.kind == .file and std.mem.endsWith(u8, entry.name, ".conf")) {
const path = try std.fs.path.join(allocator, &.{ dir_path, entry.name });
defer allocator.free(path);
const file = try std.fs.openFileAbsolute(path, .{});

View File

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