hub: [getRPMFile] add strict behavior
This commit is contained in:
parent
d3ef006842
commit
473bc1460b
4 changed files with 120 additions and 4 deletions
BIN
tests/test_lib/data/rpms/test-files-1-1.fc27.noarch.rpm
Normal file
BIN
tests/test_lib/data/rpms/test-files-1-1.fc27.noarch.rpm
Normal file
Binary file not shown.
20
tests/test_lib/data/specs/test-files._spec
Normal file
20
tests/test_lib/data/specs/test-files._spec
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
Name: test-files
|
||||
Version: 1
|
||||
Release: 1%{?dist}
|
||||
Summary: Testing files header fields
|
||||
|
||||
License: none
|
||||
|
||||
%description
|
||||
Testing files header fields
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
install -d $RPM_BUILD_ROOT/foo/bar
|
||||
install -pm 0755 fileA $RPM_BUILD_ROOT
|
||||
install -pm 0600 foo/bar/fileB $RPM_BUILD_ROOT/foo/bar
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
/fileA
|
||||
/foo/bar/fileB
|
||||
Loading…
Add table
Add a link
Reference in a new issue