Comments (7)
congrats on issue #1. Wes will review it and likely apply it once we have the tree worked out. It could be time for a bit of a re-org first.
from rdiff-backup.
I agree that return code values used for an error condition should have specific error condition meaning. This is convention almost everywhere else. Obviously some consumers of rdiff-backup will need to be updated to account for such a functionality change though. Unless someone can give a compelling argument against this we will consider it. (If it proves too polarizing we can consider an 'enable old behavior' command line argument or similar.)
Let me familiarize myself with the code base first. It might warrant some re-architecting to raise exceptions for error conditions instead
from rdiff-backup.
As the code is now hosted on GitHub it may be probably a good idea to switch to pull request based collaboration model (instead of patches).
from rdiff-backup.
Agreed szpak, but we will take either for now. There are a bunch of patches people have come up with that need merging anyway.
from rdiff-backup.
Hello @dominicraf !
The code base has been rewritten for Python 3 and there will be no further releases for the 1.x series in Python 2 anymore. Could you please help out and test again with the latest development version (https://github.com/rdiff-backup/rdiff-backup#installing-the-latest-development-version) if you can still reproduce this?
With your help, the upcoming 2.0.0 release could be improved and this reported issue eventually solved in future 2.x releases.
from rdiff-backup.
This is a bigger change which is necessary: not only Verify does return the number of failures as return code, also all the Compare functions do this. This said, I fully agree that it isn't best practice and requires a fix. It'll be done as part of milestone 2.2.0.
Some details of what needs to be done:
- modify all
def Compare*
functions and thedef Verify
function incompare.py
- make sure they return a fixed value (2 is fine with me, to make the difference with 1 for true errors) instead of the number of files
- make sure they output in failure case a message of level 1 stating how many files didn't pass the comparison/verification (if rdiff-backup returns an error code, there must be an error message).
I mark the bug as beginner as someone new can do it.
from rdiff-backup.
Closing as this has been addressed by #343 after more than 4 years!
@dominicraf thanks for your patience. And congratulation on closing yourself with your PR your own issue #1
from rdiff-backup.
Related Issues (20)
- Warning SpecialFileError: [Errno 95] Operation not supported HOT 2
- Backup files not saved with original user HOT 2
- [BUG] "OSError: [Errno 36] File name too long" HOT 3
- [?] rdiff-backup 1.2.8 freezes while restoring files from backup HOT 3
- [?] rdiff-backup doc and remote HOT 2
- [BUG] CVE-2023-49797 pyinstaller: unauthorized deletion of files HOT 2
- [ENH] allow flexible usage of better hashing algorithm than SHA1
- [BUG] rdiff-backup fails on too long filenames under Windows HOT 1
- What are the errors in statistics? HOT 4
- [ENH] populate no_compression_regexp with _something_ so it matches the documentation HOT 4
- [BUG] read-only commands should return 2 as warning if last back-up failed HOT 6
- [BUG] Removal of setup.py usage in debian/autobuild.sh regressed it HOT 2
- [BUG] crash on date beyond 2038 (last 32 bits date) HOT 3
- test action fails with empty error message when using API 201 HOT 1
- [ENH] Suppress output line-wrapping when using --parsable-output HOT 3
- [?] MacOS with Python Universal2, using pip to install rdiff-backup is working, but the resulting installation is broken HOT 2
- [ENH] Efficient restore to a populated destination HOT 7
- [BUG] Recurring Failure to "find the path specified: b'I:/'" HOT 2
- backup to a pCloud mounted drive[?] HOT 8
- problem [Errno 11] Resource temporarily unavailable, when running backup HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rdiff-backup.