From: Linus Torvalds Date: Mon, 18 Apr 2005 23:16:45 GMT Subject: Re: Re-done kernel archive - real one? Message-ID: In-Reply-To: <20050418221407.GA20290@kroah.com> On Mon, 18 Apr 2005, Greg KH wrote: > > Anyway, I try it this way and get: You should update to the newest version anyway.. > $ dotest ~/linux/patches/usb/usb-visor-tapwave_zodiac.patch > > Applying USB: visor Tapwave Zodiac support patch > > fatal: preparing to update file 'drivers/usb/serial/visor.c' not uptodate in cache > > What did I forget to do? The most common reason is that the scripts _really_ want the index to match your current tree exactly. Run "update-cache --refresh". And if you have any uncommitted information, make sure to commit it first. (Not _strictly_ true - you can leave edited files in your directory, and just hope the patch never touches them. The thing you should _not_ do is to do an "update-cache xxxx.c" to commit any changes to the 'index', because then the patch applicator will actually commit that one too). Linus