feature/checkForNewerPackagesAndDatabases #2

Merged
ProfessionalUwU merged 4 commits from feature/checkForNewerPackagesAndDatabases into dev 2023-06-18 17:40:03 +02:00

Added a lot of new functionality

Getting package names and versions

Packages names and versions are easily get by getting the folder names in /var/lib/pacman/local
Every package has their own folder. The folder names are the package name plus their current version

Figured out how to know if a database was updated

By getting the access time of each database and writing it into a file it is possible to figure out which database was updated

New test framework

Added fluentassertions to make testing easier

# Added a lot of new functionality ## Getting package names and versions Packages names and versions are easily get by getting the folder names in /var/lib/pacman/local Every package has their own folder. The folder names are the package name plus their current version ## Figured out how to know if a database was updated By getting the access time of each database and writing it into a file it is possible to figure out which database was updated ## New test framework Added [fluentassertions](https://fluentassertions.com/introduction) to make testing easier
ProfessionalUwU added the
Kind/Feature
Kind/Enhancement
Kind/Testing
labels 2023-06-18 17:35:52 +02:00
AustrianToast was assigned by ProfessionalUwU 2023-06-18 17:35:52 +02:00
ProfessionalUwU self-assigned this 2023-06-18 17:35:52 +02:00
ProfessionalUwU added 4 commits 2023-06-18 17:35:52 +02:00
We find new packages by getting the folder names in the DBPath local
Added a couple of test to check for acurate behavior in certain conditions
Added the capability to check if a database was modified
New commandline arguments
Made a seperate method for writing the database access time files
Added tests for checkIfDatabasesWereModified
ProfessionalUwU requested review from AustrianToast 2023-06-18 17:35:58 +02:00
ProfessionalUwU removed review request for AustrianToast 2023-06-18 17:38:55 +02:00
ProfessionalUwU merged commit f923628c53 into dev 2023-06-18 17:40:03 +02:00
ProfessionalUwU deleted branch feature/checkForNewerPackagesAndDatabases 2023-06-18 17:40:03 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ProfessionalUwU/pacserver#2
No description provided.