Questions tagged [patch]

A patch is a piece of software designed to fix problems with, or update a computer program or its supporting data. This includes fixing security vulnerabilities and other bugs, and improving the usability or performance.

Programmers publish and apply patches in various forms. Because proprietary software authors withhold their source code, their patches are distributed as binary executables instead of source. This type of patch modifies the program executable—the program the user actually runs—either by modifying the binary file to include the fixes or by completely replacing it.

Patches can also circulate in the form of source code modifications. In these cases, the patches consist of textual differences between two source code files. These types of patches commonly come out of open source projects. In these cases, developers expect users to compile the new or changed files themselves.

Because the word "patch" carries the connotation of a small fix, large fixes may use different nomenclature. Bulky patches or patches that significantly change a program may circulate as "service packs" or as "software updates". Microsoft Windows NT and its successors (including Windows 2000, Windows XP, and later versions) use the "service pack" terminology.

In several Unix-like systems, particularly Linux, updates between releases are delivered as new software packages. These updates are in the same format as the original installation so they can be used either to update an existing package in-place (effectively patching) or be used directly for new installations.

2809 questions
1
vote
0 answers

Can I apply changes from a perforce patch(downloaded from review board) to my code

A colleague has created a perforce change list and has posted a review on review board for the change. Alas the change is not shelved, but I need to apply the change to my code. The colleague will not be available for some days so I can not ask him…
Ivaylo Strandjev
  • 69,226
  • 18
  • 123
  • 176
1
vote
1 answer

Rails 4 patch request does not update attributes

Very new to rails. I'm building a simple app to take a group of users and randomly assign teams of 5. Everything is working fine except for a "Clear Teams" link in one of my views. The links is supposed to update the team and team2 attributes of…
1
vote
2 answers

Patch update Authenticated User in Laravel

I'm trying to edit/update profile information into my Users table. My idea is for the authenticated user to be able to edit his own profile in the Users table. During the registration, you are only required to fill out a couple specific items…
Pex
  • 519
  • 2
  • 12
  • 30
1
vote
1 answer

How could patch method in Rails update only some attributes while the other attributes are blank?

I have these questions while reading the Ruby On Rails Tutorial in here The validation of User class is: class User < ActiveRecord::Base before_save { self.email = email.downcase } validates :name, presence: true, length: { maximum: 50 } …
Kent Lee
  • 107
  • 4
  • 13
1
vote
2 answers

Is it possible to parse and apply patch files in PHP?

The idea is to have a PHP script parse a given .patch file and will apply the given patch accordingly. Assume that the script has no access to command line so the script will have to do the parsing itself. Is there a library somewhere?
radj
  • 4,360
  • 7
  • 26
  • 41
1
vote
1 answer

Another Rails No route matche [Patch]

I am trying to edit an article and re-save it. I can create a new article and save that. I can even comment on the article and save that. When I go to edit the article it auto populates the form with the text to be edited but when I try to save that…
Lilspree
  • 135
  • 2
  • 14
1
vote
0 answers

upload multiple files using patch parameter in jenkins

I want to upload multiple Patch using patch file parameter in jenkins and also the no. of file to be uploaded is dynamic. I want to make the same multiple file upload UI as its there while uploading files in gmail. I want to add an attach a file…
Triangle
  • 1,477
  • 3
  • 22
  • 36
1
vote
1 answer

python class method mocking failure

Trying to understand mocking/patching and I have a restful API project with three files (FYI, I'm using flask) class1.py domain.py test_domain.py class1.py file content: class one: def addition(self): return 4+5 domain.py file…
LuckyStarr
  • 1,465
  • 2
  • 12
  • 14
1
vote
2 answers

Why install SUPEE-1533 and SUPEE-5344

I have seen the updates requesting that we install these updates on Magento and seen questions here on how to do so and some difficulty in doing so. However I'm still unclear as to why I should do so and what will happen if I don't. Also (I'm…
Deadmonger
  • 13
  • 2
1
vote
0 answers

Updates versus compile time debugging. How to stop the oddities?

Are we reduced to ClickOnce to manage our application state for our users? We use our own installer and Visual Patch currently. When our users update using our Visual Patch download (we can reproduce this) we get errors from the updated versions…
Fox Diller
  • 13
  • 1
  • 6
1
vote
1 answer

How to point yum to a local HTTP repo to temporary

I am in a situation where I need to point to an internally hosted yum repo and update specific packages found in those repos. There are two repos, one for Red Hat 5.x and the other for Red Hat 6.x. Before you ask, I can't add the repos through the…
farhany
  • 1,243
  • 2
  • 17
  • 29
1
vote
2 answers

How to correctly add new files in WiX installation to create an uninstallable patch?

Good time, I'm trying to create the uninstallable patch (msp file) which should contain the newly added files. The file is added in following maner:
Mikhail Churbanov
  • 4,436
  • 1
  • 28
  • 36
1
vote
2 answers

How to upload Magento patch to root directory?

I am not a developer. Today when I login admin panel, a message pop up telling me to download/upload Magento CE Patches SUPEE-5344 and SUPEE-1533 And I found this tutorial Magento CE Patches tutorial But I don't know what path to upload the .SH…
Replace
  • 11
  • 1
  • 2
1
vote
3 answers

Magento SUPEE-1533 5344 127: not found when patching

I'm having the following issue with the recent patches. Magento CE Version 1.9.0.1 usr/home/******/public_html/****** > sh PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh 127: not found 127: not found 0: not found Checking if patch can be…
Ericc
  • 11
  • 3
1
vote
1 answer

Laravel 5 patch request via ajax

I have a list of comments with a post and I want a user to be able to edit their post if they want to. In the list there's a edit button (if the post belongs to the user logged in) and when clicked an ajax-request is made and a view is returned.…
Ben Fransen
  • 10,884
  • 18
  • 76
  • 129