forked from coreos/rpm-ostree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
importer: Error importing RPMs which install to /opt (outside of /usr)
See coreos#233 - for RPMs which place files in e.g. `/opt`, we have different behavior in the treecompose case (silently drop it) versus package layering (does the wrong thing). Since the unpacker right now is only used in the layering case, this just ensures we'll get a consistent error there.
- Loading branch information
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Summary: Test package which installs in /opt | ||
Name: test-opt | ||
Version: 1.0 | ||
Release: 1 | ||
License: GPLv2+ | ||
Group: Development/Tools | ||
URL: http://example.com | ||
BuildArch: x86_64 | ||
|
||
%description | ||
%{summary} | ||
|
||
%prep | ||
|
||
%build | ||
|
||
%post | ||
echo 'should fail' >> /usr/share/licenses/glibc/COPYING | ||
|
||
%install | ||
mkdir -p %{buildroot}/opt/app/bin | ||
touch %{buildroot}/opt/app/bin/foo | ||
|
||
%files | ||
/opt/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters