Comment 19 for bug 662442

Revision history for this message
Christopher Foo (chris.foo) wrote :

Sorry, I didn't see comment #17. This comment addresses #17 and #18 and any future readers.

First note, a disclaimer: I am *not* a developer nor maintainer of duplicity.

Ok, first open up a terminal. It should be in the Accessories menu.

Now type the following and hit enter. Do so for any commands listed from now on.

    sudo apt-get install build-essential bzr

Enter your password if prompted and hit yes to install the software. Once it's installed, let's switch the current directory to somewhere obvious like the Desktop folder. Use command:

    cd Desktop

Now download the software. Use command:

    bzr branch lp:duplicity

There should be a duplicty folder on your Desktop now.

Now grab the my hax file patch and put it on the Desktop.

Ok, now switch to the duplicity folder. Run command:

    cd duplicity

Before we apply to patch, we need to switch to older code. Run command:

    bzr revert -r884

Now run the command to patch. The double dot indicates it's saved one level outside the current folder, the Desktop folder. Run command:

    patch -p0 < ../duplicity_hax_662442_for_rev884.diff

It should say "patching file duplicity/patchdir.py".

Now switch to the folder duplicity/ (aka ~/Desktop/duplicity/duplicity). Run command:

    cd duplicity

Compile something. Run command:

    python compilec.py

Now switch back to the parent dir. Run command:

    cd ..

Now duplicity should be ready to run. You can run ./bin/duplicity.

This command will show the version. Run command:

    ./bin/duplicity -V

It will return "$version" which isn't set, but the main thing is that it successfully runs.

Hope this helps.