Max Downey Twiss
a1d718f7fb
Refactor name mapping in tools/version.rb ( #13637 )
...
* Add get_clean_name function to PackageUtils
* Use PackageUtils.get_clean_name in tools/version.rb and refactor name mapping
2025-11-26 07:01:22 +00:00
Max Downey Twiss
61dfdcb3e3
Add conflicts_with property and use it for coreutils, tealdeer and tldr ( #13252 )
...
* Add PackageUtils.compatible? tests for min_glibc and max_glibc
* Add conflicts_with property and use it for coreutils, tealdeer and tldr
2025-10-29 15:46:24 +00:00
Maximilian Downey Twiss
37e467d580
Refactor tools/update_ruby_gem_packages.rb to use package objects, the rubygems.org api, and more rubification ( #11671 )
...
* Trim -ruby versions in PackageUtils.get_clean_version
* Refactor tools/update_ruby_gem_packages.rb to use package objects, the rubygems.org api, and more rubification
2025-06-26 12:14:20 +00:00
Maximilian Downey Twiss
2fcf2cb590
Revert "Revert #10453 ( #10456 )" ( #10460 )
...
This reverts commit 679c419673 .
2024-09-11 16:21:26 -05:00
Ed Reel
679c419673
Revert #10453 ( #10456 )
2024-09-11 13:33:24 -04:00
Maximilian Downey Twiss
1fc45a2322
Add Rakefile to replace crew test and simplify unit testing. ( #10453 )
2024-09-11 09:28:59 -04:00
Maximilian Downey Twiss
a532c3fc47
Reland: Download the correct file when there are multiple versions of a package binary ( #10336 )
2024-09-03 01:23:40 -05:00
Satadru Pramanik, DO, MPH, MEng
c6b102fece
Use grep better to speed up crew remove of packages. ( #10309 )
...
* use grep to speed up crew remove
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* bump version
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* adjust logic
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Add back CREW_ESSENTIAL_FILES to handle files like libC.so.6
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* adjust CREW_ESSENTIAL_FILES logic
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* fix package_files_that_overlap
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* cleanup output of package_files_that_overlap
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* debug
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Back out CREW_ESSENTIAL_FILES change, and use Package.load_package('pkg.rb').get_deps_list to find dependent packages of CREW_ESSENTIAL_PACKAGES in commands/remove.rb, and also fix Package.load_package('pkg.rb').get_deps_list to enable using it from commands/remove.rb
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Adjust removal message in crew.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Adjust some punctuation and capitalization.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* fix pkg_file path detection
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Only use CREW_LOCAL_REPO_ROOT file if it exists.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* suggested changes
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Fix ESSENTIAL_PACKAGE dependency expansion.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Fix essential_deps logic.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Adjust remove logic to return quietly if in_upgrade, else exit 1, and also properly figure out essential_packages list.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Fix docopt so options like '-d' work.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Add suggested changes for testing, add testing file for remove.rb, also in testing.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* fixup
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* more testing
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Move recursive package function to package.rb
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Adjust function name.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* simplify
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* simplify
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Use File.mtime for @last_update_check as per suggestion by @Zopolis4.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Move essential package determination to crew:generate_compatible.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Move load_json and save_json to package_utils and just use symbols for the json array in remove and package_utils.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Unify json usage globally.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Fix one remove test.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* lint
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Update remove.rb test.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* cleanup
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Adjust remove test.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Try to use new Unit Tests...
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Fix installsh: git config --local commands cannot be run unless the git repo is already setup.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Move json functions to package_utils.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Fix docopt for real, add docopt unit test, have install.sh generate ruby gem filelists just like a regular buildsystems/ruby gem install.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Use CREW_META_PATH in install.sh.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Cleanup remove.rb tests.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Add 'crew list essential'.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Add unit test for list command.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Cleanup remove.rb test.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Cleanup wording.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Move print_deps_tree to lib/package.rb.
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* lint
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
* Return changes from #10317
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
---------
Signed-off-by: Satadru Pramanik <satadru@gmail.com >
2024-08-17 14:09:09 -05:00
Ed Reel
48326918e5
Revert "Download the correct file when there are multiple versions of a package binary ( #10152 )" ( #10253 )
...
This reverts commit 2249eee24e .
2024-08-05 12:17:26 -04:00
Maximilian Downey Twiss
2249eee24e
Download the correct file when there are multiple versions of a package binary ( #10152 )
2024-08-04 23:24:48 -05:00
Maximilian Downey Twiss
cbd2d8f282
Add get_clean_version in PackageUtils and use it in json.rb and version.rb ( #10249 )
2024-08-04 23:09:32 -05:00
Maximilian Downey Twiss
8b19dcd05a
Add lib/package_utils.rb to provide a number of package convenience functions. ( #9617 )
2024-04-10 13:00:04 -05:00