fix(makefile): update-rules does not remove deleted pack directories #83
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type/architecture
type
bug
type
config
type
deployment
type
docs
type/documentation
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
type/task
type/tech-debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/fragjan#83
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
make update-rulescopies rules from var/rules/ to /var/lib/fragjan/rules/but does not remove directories that no longer exist in var/rules/.
After renaming packs (e.g. daw-code -> daw-lua-code), old directories
remain in the install target and fragjan picks up stale rules.
Solution
Before copying, remove the install target directory and recreate it,
or diff the two directories and remove orphaned entries.
Simplest approach: backup + clean before copy:
Affected file
Fixed in Makefile.
update-rules(overwrite only, no delete)upgrade-rulestarget: backup existing rules to rules.bak, remove rules/, copy fresh from repoTested on v0.2.8 -> v0.2.9 cycle.