How to apply a python patch on installed library

23

Use the 'patch' tool to apply your patch. The description provided to you above is likely useful; first move to the django source directory or where ever you've uncompressed your egg, and then run patch (if you don't have patch installed simply do an apt-get install patch). I'd use -p1 as an arg, not sure why -p2 was specified, but my command might look like this;

patch -p1 --dry-run < name.patch

You can find out more with 'man patch'.

Share:
23

Related videos on Youtube

ThomasMX
Author by

ThomasMX

Updated on September 18, 2022

Comments

  • ThomasMX
    ThomasMX almost 2 years

    So if I create a new MVC project with basic log in template, there should be somewhere a database which contains all the user login information. There's even the default connection string which points to it.

    <add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-MyProjectName-20140521042155.mdf;Initial Catalog=aspnet-MyProjectName-20140521042155;Integrated Security=True" providerName="System.Data.SqlClient" />
    

    How ever, when exploring the project folder I cannot find it. I also tried to turn on "show all files" option in the solution explorer.

    • Admin
      Admin over 11 years
      Unless you've used the Ubuntu Django (deb) packages and want to re-package it, I don't see how this is ontopic here. Software development and related things like applying patches should be asked on StackOverflow. But pssst... cd path/to/django; patch -p2 --dry-run < path/to/patch will help you out, right?
    • Admin
      Admin over 11 years
      Developing for (or in) Ubuntu is a topic of AskUbuntu. Check the FAQ (askubuntu.com/faq)
    • Admin
      Admin over 11 years
    • Admin
      Admin over 11 years
      @gertvdgik: If he is using this question is ontopic here(and also in SO), deb package is not necessory, You can post your answer below
    • Admin
      Admin over 11 years
      Development under Ubuntu and using Ubuntu for developing is more than on-topic for this site. This question stays. @gertvdijk feel free to add an answer to this post, there is nothing wrong with it or that deserves migration any where.