GithubHelp home page GithubHelp logo

Comments (7)

davekempe avatar davekempe commented on June 12, 2024

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.

anomaly256 avatar anomaly256 commented on June 12, 2024

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.

szpak avatar szpak commented on June 12, 2024

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.

davekempe avatar davekempe commented on June 12, 2024

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.

ottok avatar ottok commented on June 12, 2024

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.

ericzolf avatar ericzolf commented on June 12, 2024

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 the def Verify function in compare.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.

ericzolf avatar ericzolf commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.