Commit graph

9014 commits

Author SHA1 Message Date
Niyaz Nigmatullin
45dea119fa cp: remove unused winapi dependency 2022-10-20 12:16:22 +03:00
Niyaz Nigmatullin
76ee0db26c uucore: migrate from winapi to windows-sys crate 2022-10-20 12:16:22 +03:00
Sylvestre Ledru
49c435a25b
ignore a word 2022-10-20 07:46:38 +02:00
Sylvestre Ledru
0f2067f0b9
Merge pull request #3901 from jfinkels/cp-refactor-copy-direntry
cp: move copy_directory() to its own module
2022-10-20 07:45:26 +02:00
Jeffrey Finkelstein
aeba601335 cp: break up copy_directory() into helper funcs
Add some additional structs and helper functions to make the code in
`copydir.rs` easier to read and maintain. This commit changes only the
organization of the code, not its function.
2022-10-19 22:39:34 -04:00
Jeffrey Finkelstein
d8146d1b5c cp: move copy_directory to new module copydir.rs
Move the `copy_directory()` helper function to a new module
`copydir.rs`. This commit only changes the organization of the code,
not its behavior.
2022-10-19 22:39:12 -04:00
Jeffrey Finkelstein
11d3e0f743 cp: refactor Options::preserve_hard_links()
Refactor common code into a helper method
`Options::preserve_hard_links()`. This also eliminates the need for
mutability in a local variable in two places.
2022-10-19 22:35:10 -04:00
David Matos
d46e5df3d3 hashsum: warn on file not found rather than fail 2022-10-19 22:46:47 +02:00
Sylvestre Ledru
536dd90ce5
Merge pull request #4062 from uutils/dependabot/cargo/clap-4.0.17
build(deps): bump clap from 4.0.16 to 4.0.17
2022-10-19 11:31:47 +02:00
Sylvestre Ledru
1b45e50655
Merge pull request #4063 from uutils/dependabot/cargo/sha3-0.10.6
build(deps): bump sha3 from 0.10.5 to 0.10.6
2022-10-19 11:31:22 +02:00
dependabot[bot]
e2c368cee0
build(deps): bump sha3 from 0.10.5 to 0.10.6
Bumps [sha3](https://github.com/RustCrypto/hashes) from 0.10.5 to 0.10.6.
- [Release notes](https://github.com/RustCrypto/hashes/releases)
- [Commits](https://github.com/RustCrypto/hashes/compare/sha3-v0.10.5...sha3-v0.10.6)

---
updated-dependencies:
- dependency-name: sha3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-19 06:27:28 +00:00
dependabot[bot]
e538235945
build(deps): bump clap from 4.0.16 to 4.0.17
Bumps [clap](https://github.com/clap-rs/clap) from 4.0.16 to 4.0.17.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.16...v4.0.17)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-19 06:27:07 +00:00
Orhun Parmaksız
50be73d99f
refactor: add automatic conversion for nix::Errno 2022-10-19 00:13:59 +03:00
Pat Laster
79895a73e6
Merge branch 'main' into rm-correct-prompts 2022-10-18 10:48:26 -05:00
Niyaz Nigmatullin
43d85c6489 rand_pcg is used only in unix tests, moved to unix dev-dependencies 2022-10-18 13:18:50 +03:00
Niyaz Nigmatullin
729d97e993 test_sort: use Pcg32 random number generator 2022-10-18 13:18:50 +03:00
Niyaz Nigmatullin
ec8e610e48 test_sort: created a new big file for sort
Before, the sort could work faster and we could be late with
the signal.
Now we create a new big file, `sort` can't process it in a minute,
so we can safely wait for the temporary directory to be created
and send a signal afterwards
2022-10-18 13:18:50 +03:00
Niyaz Nigmatullin
95e7b53402 test_sort: make timeout smarter, wait if failed to create dir
Before the change it slept for 0.1 seconds and right after that
asserted if `sort` has created the directory. Sometimes `sort`
didn't manage to create the directory in 0.1 seconds.
So the change is it tries to wait for `timeout` starting with
0.1 seconds, and if directory was not found, it tries 4 more times,
each time increasing timeout twice. Once the directory is found
it breaks.
2022-10-18 13:18:50 +03:00
Sylvestre Ledru
513b764434
Merge pull request #4057 from uutils/dependabot/cargo/clap-4.0.16
build(deps): bump clap from 4.0.15 to 4.0.16
2022-10-18 10:46:15 +02:00
Sylvestre Ledru
f4484c71b6
Merge pull request #4058 from niyaznigmatullin/windows_tests
tests: fixed some tests on Windows
2022-10-18 10:45:51 +02:00
Niyaz Nigmatullin
cefc4f6736 tests: fixed some tests on Windows
Tests used to use system `touch` and `ls` instead of
testing bench `fixtures.touch` and `uu_ls`
2022-10-18 10:00:28 +03:00
dependabot[bot]
ee561973c5 build(deps): bump clap from 4.0.15 to 4.0.16
Bumps [clap](https://github.com/clap-rs/clap) from 4.0.15 to 4.0.16.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.15...v4.0.16)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-18 08:59:59 +02:00
Sylvestre Ledru
3ec8cc3976
Merge pull request #4056 from niyaznigmatullin/split_fix_clap_update
split: fix `---io` for clap 4
2022-10-18 08:59:51 +02:00
Pat Laster
87df47dee3
Merge branch 'main' into rm-correct-prompts 2022-10-17 17:41:44 -05:00
Pat Laster
2e61580b99 Cleaner force_prompt_never 2022-10-17 17:40:33 -05:00
Niyaz Nigmatullin
505865cce8 split: fix ---io for clap 4 2022-10-18 00:21:27 +03:00
Sylvestre Ledru
969f821830
Merge pull request #4009 from andrewbaptist/fix_eof_linebytes
Match GNU semantics for missing EOF
2022-10-17 16:23:20 +02:00
Sylvestre Ledru
480f36fa41
Merge pull request #4055 from niyaznigmatullin/bump_bstr-1.0.1
Bump bstr 1.0.1
2022-10-17 16:22:48 +02:00
Niyaz Nigmatullin
3e907e0c06 Fix usage of for_byte_record_with_terminator from bstr 2022-10-17 11:00:23 +03:00
dependabot[bot]
e48125fc9c build(deps): bump bstr from 0.2.17 to 1.0.1
Bumps [bstr](https://github.com/BurntSushi/bstr) from 0.2.17 to 1.0.1.
- [Release notes](https://github.com/BurntSushi/bstr/releases)
- [Commits](https://github.com/BurntSushi/bstr/compare/0.2.17...1.0.1)

---
updated-dependencies:
- dependency-name: bstr
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-17 10:58:56 +03:00
Sylvestre Ledru
15dc0aa6e7
Merge pull request #4052 from tertsdiepraam/docs-fix-usage-since-clap-4
docs: fix usage string since clap 4
2022-10-17 08:39:39 +02:00
Sylvestre Ledru
2b27925d6a
Merge pull request #4053 from niyaznigmatullin/cargo_update
`cargo +1.60.0 update`
2022-10-17 08:39:24 +02:00
Pat Laster
03578a7aca Fixed invert issue 2022-10-16 13:14:17 -05:00
Niyaz Nigmatullin
277e3d17a1 tests: change error messages for wrong arguments
Clap used `"` for argument values, now uses `'`.
2022-10-16 19:28:04 +03:00
Pat Laster
b612ce5cd7 Cleaner force_prompt_never 2022-10-16 10:57:12 -05:00
Niyaz Nigmatullin
39edd16c9f deps: cargo +1.60.0 update 2022-10-16 16:52:55 +03:00
Pat Laster
b3b90e453c Forgot fmt again 2022-10-15 17:41:11 -05:00
Pat Laster
1c507c6739 Updated to clap4 2022-10-15 17:39:10 -05:00
Terts Diepraam
ed6b4c8635 docs: fix usage string since clap 4 2022-10-15 22:30:52 +02:00
Pat Laster
430652193b Fixed merge conflicts 2022-10-15 15:08:28 -05:00
Pat Laster
7e62945fd3
Merge branch 'main' into rm-correct-prompts 2022-10-15 14:58:13 -05:00
Sylvestre Ledru
d9ca1d4805
Merge pull request #4050 from tertsdiepraam/package-install-docs
docs: installation.md fixes
2022-10-15 13:40:30 +02:00
Sylvestre Ledru
96721a0b1e
Merge pull request #4051 from tertsdiepraam/docs-url-update
Fix links to documentation after moving them
2022-10-15 13:40:17 +02:00
Terts Diepraam
9a0e47706c Fix links to documentation after moving them 2022-10-15 12:37:01 +02:00
Terts Diepraam
9d3a0835f7 docs: installation.md fixes 2022-10-15 11:45:28 +02:00
Sylvestre Ledru
23b0bb3da4
Merge pull request #3991 from tertsdiepraam/clap-4
Clap 4
2022-10-14 21:49:05 +02:00
Sylvestre Ledru
6fd64c83fa
Merge pull request #4048 from tertsdiepraam/package-install-docs
docs: add installation page with package managers
2022-10-14 21:15:54 +02:00
Sylvestre Ledru
563dde4403
Merge pull request #4046 from uutils/dependabot/cargo/smallvec-1.10.0
build(deps): bump smallvec from 1.9.0 to 1.10.0
2022-10-14 18:45:41 +02:00
Sylvestre Ledru
f2086b188c
Merge branch 'main' into dependabot/cargo/smallvec-1.10.0 2022-10-14 18:45:34 +02:00
Terts Diepraam
5c676ac268 docs: add installation page with package managers 2022-10-14 17:11:27 +02:00