Commit Graph

760 Commits

Author SHA1 Message Date
Alexander Karatarakis
c2a9d018ca Reduce verbosity of vcpkg remove when purging the package 2017-04-18 14:50:25 -07:00
Alexander Karatarakis
5a4e7ff1b6 Workaround for fs::remove_all() 2017-04-18 14:49:50 -07:00
Alexander Karatarakis
80825d491f Use read-only pattern for InstallationDirs 2017-04-17 19:06:25 -07:00
Alexander Karatarakis
4da39c6ca6 InstallationDirs struct now checks/create the needed dirs 2017-04-17 19:04:17 -07:00
Alexander Karatarakis
c8ff4e39ba Add fs::create_directories() forwarding function 2017-04-17 19:04:00 -07:00
Alexander Karatarakis
9b5275bb85 Make install_and_write_listfile() public
(also rename it)
2017-04-17 19:03:51 -07:00
Alexander Karatarakis
d52ddf8263 Variable rename and formatting 2017-04-17 19:03:47 -07:00
Alexander Karatarakis
547455ca3a Introduce InstallationDirs stuct 2017-04-17 19:03:43 -07:00
Alexander Karatarakis
0cc9748b2a Remove unused #include 2017-04-17 19:03:32 -07:00
Alexander Karatarakis
21fb6d0741 Add SortedVector.cbegin() and .cend() 2017-04-17 13:59:58 -07:00
Alexander Karatarakis
1a65c26a3f ci: pretty print the package build times 2017-04-17 12:41:22 -07:00
Alexander Karatarakis
a715caf5fd Formatting 2017-04-17 12:03:06 -07:00
Robert Schumacher
20397fc845 Merge branch 'dev/roschuma/fs-testing' 2017-04-14 16:07:54 -07:00
Robert Schumacher
1c08a42091 Merge from master 2017-04-14 16:01:19 -07:00
Alexander Karatarakis
aeaccc7814 Rework print_plan() for remove and install 2017-04-14 14:31:45 -07:00
Alexander Karatarakis
55f554eea1 Introduce Util::group_by() 2017-04-14 14:31:45 -07:00
Alexander Karatarakis
392b3a50ea Use Util::find_if/not() 2017-04-14 14:31:45 -07:00
Alexander Karatarakis
66017aa2c3 Add Util::find_if() and Util::find_if_not() 2017-04-14 14:31:45 -07:00
Alexander Karatarakis
e3f4e09342 Remove explicit keyword from constructor 2017-04-14 14:31:45 -07:00
Alexander Karatarakis
5405d4d587 Rename p->plan and formatting 2017-04-14 14:31:45 -07:00
Alexander Karatarakis
fbc8b86426 Use Strings::join() 2017-04-14 14:31:44 -07:00
Alexander Karatarakis
46999d38be Use Util::erase_remove_if() 2017-04-13 15:49:33 -07:00
Alexander Karatarakis
294159bfd1 keep_if (wrong name) renamed to erase_remove_if 2017-04-13 15:37:24 -07:00
Robert Schumacher
c92623216d Revert "Use Util::keep_if()"
This reverts commit 3739e8e0b9.
2017-04-13 02:15:42 -07:00
Alexander Karatarakis
23366aede0 Remove unused #include 2017-04-12 23:32:36 -07:00
Alexander Karatarakis
14a8317dea Add final keyword 2017-04-12 23:32:29 -07:00
Alexander Karatarakis
8abbce6361 write_all_lines() -> write_lines() 2017-04-12 23:16:04 -07:00
Alexander Karatarakis
bd01f8ce83 get_files_recursive()/get_files_non_recursive() 2017-04-12 23:15:02 -07:00
Alexander Karatarakis
1b21fd0f71 Files::read_lines() -> Files::read_all_lines() 2017-04-12 23:00:42 -07:00
Robert Schumacher
c3b54a2e7b Merge from master 2017-04-12 22:57:23 -07:00
Robert Schumacher
7069fbbebc [vcpkg] Remove+indirect nearly all uses of iostreams 2017-04-12 22:48:52 -07:00
Alexander Karatarakis
3739e8e0b9 Use Util::keep_if() 2017-04-12 22:40:24 -07:00
Alexander Karatarakis
b578320d9c Add PackageSpec != operator 2017-04-12 22:40:24 -07:00
Alexander Karatarakis
8972bd3067 Introduce keep_if function 2017-04-12 22:40:17 -07:00
Alexander Karatarakis
e78827e8cc Remove AUTO_SELECTED && ALREADY_INSTALLED packages from the install plan 2017-04-12 22:05:04 -07:00
Alexander Karatarakis
2fa87fbb0a Simplify Remove plan generation 2017-04-12 22:05:03 -07:00
Alexander Karatarakis
5131e955a8 Simplify Install plan generation 2017-04-12 22:05:03 -07:00
Alexander Karatarakis
76f2c557ef Fix issue in the toposort algorithm and move-only types 2017-04-12 22:05:03 -07:00
Alexander Karatarakis
5cd921c2b5 edges() -> dependencies() 2017-04-12 22:05:03 -07:00
Alexander Karatarakis
2cc01b2aca Remove Graph class 2017-04-12 22:05:03 -07:00
Alexander Karatarakis
7f79f44b0c Rework create_install_plan() 2017-04-12 22:05:03 -07:00
Alexander Karatarakis
4749d7d67d Move line below temp struct 2017-04-12 22:05:03 -07:00
Alexander Karatarakis
88e0246c77 Improve create_remove_plan (still using Graph) 2017-04-12 22:05:03 -07:00
Alexander Karatarakis
5afcd0afe0 Use status_db.find_installed() 2017-04-12 22:05:03 -07:00
Alexander Karatarakis
ea42d5c686 Remove repeated #include 2017-04-12 22:05:03 -07:00
Alexander Karatarakis
6ef84f8a62 Add default constructor to Optional<T> 2017-04-12 22:05:03 -07:00
Alexander Karatarakis
58f46ab652 Rework toposort and create_install_plan 2017-04-12 22:05:03 -07:00
Alexander Karatarakis
24ba9f94ea Parameter by const& 2017-04-12 22:05:03 -07:00
Alexander Karatarakis
d7466d98bb Extract toposort into a free function 2017-04-12 22:05:03 -07:00
Alexander Karatarakis
cfbfa0d813 Rename 2017-04-12 22:05:02 -07:00