-
Notifications
You must be signed in to change notification settings - Fork 62
Comparing changes
Open a pull request
base repository: clearlinux/swupd-client
base: v5.1.0
head repository: clearlinux/swupd-client
compare: v5.1.1
- 15 commits
- 29 files changed
- 2 contributors
Commits on Apr 4, 2024
-
Rework how curl errors are checked
In cases where curl perform returns an error but is actually a 400 level response, swupd needs to check curl info to see this. If the info reveals a 400 level response, return the corresponding download status error to prevent useless download retries. Signed-off-by: William Douglas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ae19d9d - Browse repository at this point
Copy the full SHA ae19d9dView commit details -
Reformat files with make format
Signed-off-by: William Douglas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bf53867 - Browse repository at this point
Copy the full SHA bf53867View commit details
Commits on Apr 5, 2024
-
The remove_files_in_manifest_from_fs function isn't used and was a user of a rather dangerous recursive remove function. Get rid of it to avoid potential confusion. Signed-off-by: William Douglas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2fd2f6c - Browse repository at this point
Copy the full SHA 2fd2f6cView commit details -
Rework content deletion handling
Currently sys_rm_recursive was used in any instance of deleting swupd content from the system (update, repair and bundle-remove). This can cause user data loss when unkown files are in directories that swupd is deleting. To prevent this, this patch changes how deleting content in swupd operates. Swupd content removal is now done with sys_rm and the return value is checked in case the removal failed due to a directory that still had files in it. When this specific failure occurs, the directory is added to a new list for reprocessing removals as it is expected once the rest of the deletes on the system occur the failures will go away as the directories will be empty (these deletes are processed in alphabetical reverse order so leaf directories are processed first). If the removal fails again it is presumed the contents of the directory are not files swupd knows about and as such should be kept somewhere else. For handling the retention of user data, directories (with only the content unknown to swupd) are renamed (currently using a .deleted.$timestamp. prefix of the old name) and stored at the same directory level they were previously found with one exception. The exception is for nested deleted content best illustrated with an example: /swupd-dir1/user-file1 /swupd-dir1/swupd-dir2/user-file2 When swupd tries to remove the /swupd-dir1 content, it will store the user files as follows: /.deleted.$timestamp1.swupd-dir1/user-file1 /.deleted.$timestamp1.swupd-dir1/.deleted.$timestamp1.swupd-dir2/user-file2 To demarcate what was part of swupd content vs user content. Signed-off-by: William Douglas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 02d2765 - Browse repository at this point
Copy the full SHA 02d2765View commit details
Commits on Apr 8, 2024
-
Add helper file for language server interaction
Signed-off-by: William Douglas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 99753d9 - Browse repository at this point
Copy the full SHA 99753d9View commit details -
The specific issue isn't impactful since the file is already scanned. Signed-off-by: William Douglas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5fe01a7 - Browse repository at this point
Copy the full SHA 5fe01a7View commit details -
Use curl CURLINFO_CONTENT_LENGTH_DOWNLOAD_T
Previous use of CURLINFO_CONTENT_LENGTH_DOWNLOAD is deprecated so switch to the updated CURLINFO_CONTENT_LENGTH_DOWNLOAD_T API. This change does not propagate the curl type used to the rest of swupd-client but instead tries to use reasonable type casts for their given purpose. Signed-off-by: William Douglas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 279f715 - Browse repository at this point
Copy the full SHA 279f715View commit details
Commits on Jul 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for abb3f2b - Browse repository at this point
Copy the full SHA abb3f2bView commit details
Commits on Jul 29, 2024
-
Test fixups and update for newer systemd
systemctl reports that the timer file is missing now as a return code 4 so update the unknown start number. Also with this change SWUPD_NO is no longer always returned so add a new helper to check if a status is one of multiple options. Signed-off-by: William Douglas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9fdf88c - Browse repository at this point
Copy the full SHA 9fdf88cView commit details
Commits on Aug 13, 2024
-
Add error handling for curl_easy_getinfo
Set response explicitly in case of curl_easy_getinfo error (though in practice the response isn't modified and so program behavior is the same as before this change). Signed-off-by: William Douglas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6e02330 - Browse repository at this point
Copy the full SHA 6e02330View commit details
Commits on Aug 26, 2024
-
Redirect URL override messages to STDERR
Previously, these messages were printed to STDOUT: Overriding version and content URLs with... Overriding content URL with... Overriding version URL with... But especially with --quiet, the output to STDOUT should be strictly the requested data. So print these as warnings instead.
Configuration menu - View commit details
-
Copy full SHA for 8742b3a - Browse repository at this point
Copy the full SHA 8742b3aView commit details -
Fixup bundle counting in real_content test library
Eliminate some uses of wc -l that don't help. Take advantage of lines array to count bundles. Separate STDERR messages from $output and ${lines[@]} that are used for bundles.
Configuration menu - View commit details
-
Copy full SHA for b1bbef0 - Browse repository at this point
Copy the full SHA b1bbef0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 964ebcc - Browse repository at this point
Copy the full SHA 964ebccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a43ac7 - Browse repository at this point
Copy the full SHA 6a43ac7View commit details
Commits on Aug 27, 2024
-
- Testing fixups - Update to use CURLINFO_CONTENT_LENGTH_DOWNLOAD_T - Recursive delete handle user data gracefully - Rework curl error checking Signed-off-by: William Douglas <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9da2dc6 - Browse repository at this point
Copy the full SHA 9da2dc6View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v5.1.0...v5.1.1