From f222c95e8a93a5375e23bc6a90ba78e71d53ff9d Mon Sep 17 00:00:00 2001 From: Dan Milne Date: Sun, 2 Feb 2025 22:31:01 +1100 Subject: [PATCH] Add a notes file --- .../{source_file.rb => package.rb} | 0 notes.md | 25 +++++++++++++++++++ 2 files changed, 25 insertions(+) rename lib/picopackage/{source_file.rb => package.rb} (100%) create mode 100644 notes.md diff --git a/lib/picopackage/source_file.rb b/lib/picopackage/package.rb similarity index 100% rename from lib/picopackage/source_file.rb rename to lib/picopackage/package.rb diff --git a/notes.md b/notes.md new file mode 100644 index 0000000..d802afb --- /dev/null +++ b/notes.md @@ -0,0 +1,25 @@ +## Package Installation Flow + +1. **Fetch URL** + └─> Download content + └─> Build Package Instance (Metadata & Payload) + └─> Check local file status + +2. **Local File Check** + ├─> If file doesn't exist: + │ └─> Save file + │ + └─> If file exists: + └─> Compare versions + ├─> If older/same: + │ └─> "Package already installed" + │ + └─> If newer: + └─> Check local modifications + ├─> If modified: + │ └─> "Local modifications detected" + │ └─> "Use 'update '" + │ + └─> If unmodified: + └─> "Update available" + └─> "Use 'update -f' to force update"