Comment 7 for bug 1795278

Revision history for this message
ԜаӀtеr Ⅼарсһуnѕkі (wxl) wrote :

Michal, that's not how patching works, unfortunately. You can put all that in a file and use the `patch` command. The easy way is to go to the folder containing the file and run `sudo patch < /path/to/diff`.

Or you could simply edit the file (/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py) according to the instructions given by the diff:

 1. Starting at line 709, look at it and the following 7 lines for a total of eight lines (this is what "-709,8" refers to in the original)
 2. Note, too, that after the change, the same hunk is referenced as "+709,7" meaning that the end result is one less line.
 3. Remove the definition of the "url" variable in line 712.
 4. In the next line (which is now 712) which defines the "filename" variable, change it from using the KFileDialog.getOpenFileName method to the QFileDialog.getOpenFileName method. Note that the arguments and their order are different.
 5. Save it and try again.