Bug 52729

Summary: '--justdb' operations ignore %_netsharedpath
Product: [Retired] Red Hat Raw Hide Reporter: Enrico Scholz <rh-bugzilla>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED DUPLICATE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-08-28 14:39:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Enrico Scholz 2001-08-28 14:39:39 UTC
Description of Problem:

When upgrading with the '--justdb' flag the %_netsharedpath is ignored.

BTW: does there exists a reason why the example works as root only? When
executing as normal user, no error-messages appear but 'RPM -qa' gives no
output.


Version-Release number of selected component (if applicable):

rpm-4.0.3-0.96


Steps to Reproduce:
1. p=/var/tmp/rpm-netshared-test
2. alias RPM="rpm --root $p --eval %define\ _netsharedpath\ /usr/share/man"
3. mkdir -p $p/var/lib/rpm
4. RPM --initdb
5. RPM -U setup-2.5.4-1.noarch.rpm filesystem-2.1.5-2.noarch.rpm --justdb
6. RPM -qas | grep 'net shared'


Actual Results:

no output at (6)


Expected Results:

(6) gives out some directories


Additional Information:

setup and filesystem are from roswell2

Comment 1 Jeff Johnson 2001-08-28 14:51:12 UTC
With --root option, root is required because chroot(2) is root only (#49899).

With --justdb option, certain pathways involved in calculating file
disposition and state are skipped. Otherwise this is just a variant
duplicate of #52725.

*** This bug has been marked as a duplicate of 52725 ***