Zac Elston
2008-05-07 20:17:36 UTC
Greetings.
I'm attempting to demonstrate how RPMs will save the developer's butt
by not allowing a file to be overwritten and during my demo, PackageB
overwrites PackageA's file
[***@webd-m01 ~]# rpm -q --whatprovides /usr/local/testfile
psi-test-1-dev
psi-retest-2-dev
what did I do wrong?
--specfile snippets
Summary: file overwrite test
Name: psi-test
Version: 1
Release: dev
install -D testfile $RPM_BUILD_ROOT/usr/local/psi/testfile
%files
%defattr(644,apache,apache)
%config(noreplace) /usr/local/psi/testfile
Summary: file overwrite test
Name: psi-retest
Version: 2
Release: dev
install -D testfile $RPM_BUILD_ROOT/usr/local/psi/testfile
%files
%defattr(644,apache,apache)
/usr/local/psi/testfile
-zac
I'm attempting to demonstrate how RPMs will save the developer's butt
by not allowing a file to be overwritten and during my demo, PackageB
overwrites PackageA's file
[***@webd-m01 ~]# rpm -q --whatprovides /usr/local/testfile
psi-test-1-dev
psi-retest-2-dev
what did I do wrong?
--specfile snippets
Summary: file overwrite test
Name: psi-test
Version: 1
Release: dev
install -D testfile $RPM_BUILD_ROOT/usr/local/psi/testfile
%files
%defattr(644,apache,apache)
%config(noreplace) /usr/local/psi/testfile
Summary: file overwrite test
Name: psi-retest
Version: 2
Release: dev
install -D testfile $RPM_BUILD_ROOT/usr/local/psi/testfile
%files
%defattr(644,apache,apache)
/usr/local/psi/testfile
-zac