dskvr / opkg

Automatically exported from code.google.com/p/opkg
0 stars 0 forks source link

[PATCH] Install: Allow override of files that have no owner #99

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In a package install, the function check_data_file_clashes()
checks if a file that is going to be installed exists
and if it belongs to any package.

Currently if a file exists, the installation fails as
a result of a file clash.

This patch changes a bit that behavior by allowing the
overwrite of files that have no owner, i.e., don't
belong to any package.

This is, for instance, the behavior of apt.

Original issue reported on code.google.com by jonh.wen...@gmail.com on 28 Feb 2013 at 8:12

Attachments:

GoogleCodeExporter commented 8 years ago
this patch also fixes this issue:

- package A is installed
- package B replaces/conflicts with A; and has some files equal to some A's 
files

"opkg --noaction install B" --> FAIL

because:

- A is removed (but their files not, remember, --noaction flag)
- B tries to install some files that do exist in the filesystem and do not 
belong to any package.

Original comment by jonh.wen...@gmail.com on 4 Mar 2013 at 11:23

GoogleCodeExporter commented 8 years ago
I picked this up from your github repo and it is now in my testing branch.

Original comment by paul.betafive on 3 Aug 2013 at 9:51

GoogleCodeExporter commented 8 years ago

Original comment by paul.betafive on 18 Sep 2013 at 1:15

GoogleCodeExporter commented 8 years ago
Patch applied with modification.

Original comment by paul.betafive on 20 Dec 2013 at 9:54