[
http://jira.codehaus.org/browse/MOJO-931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128832#action_128832
]
Michael Hirsch commented on MOJO-931:
-------------------------------------
What I would really like is a way to include or exclude the top directory. It
could be something explicit like an <includeDir/> tag, or something implicit
like <location>foo/bar</location> means to include the directory in the rpm
file list and <location>foo/bar/</location> would mean to include the contents
of foo/bar, but not the directory itself. This is similar to the way rsync
distinguishes the two cases for it's source directory and it is quite
convenient.
> Specifying <directory> of a pre-exising system directory results in an RPM
> which can't be installed due to conflicts
> --------------------------------------------------------------------------------------------------------------------
>
> Key: MOJO-931
> URL: http://jira.codehaus.org/browse/MOJO-931
> Project: Mojo
> Issue Type: Bug
> Components: rpm
> Environment: CentOS release 5 (Final)
> Reporter: Shmulik Fishman
> Assignee: Bob Allison
> Priority: Minor
> Attachments: rpm-filelist.patch, rpm-single-sourcefile-v2.patch,
> rpm-single-sourcefile.patch
>
>
> <mapping> currently specifies the destination directory for the files. This
> directory is always listed as part of the installed files.
> This presents a problem when trying to install a startup script for the
> application:
> <mapping>
> <directory>/etc/init.d</directory>
> [...]
> </mapping>
> Trying to install the RPM results in the following error:
> # rpm -Uvh dummy-1.0-1.i386.rpm
> file /etc/init.d from install of dummy-1.0-1 conflicts with file from package
> chkconfig-1.3.30.1-1
> $ rpm -qlvp dummy-1.0-1.i386.rpm
> [..]
> drwxr-xr-x 2 root root 0 Oct 17 10:50 /etc/init.d
> -rwxr-xr-x 1 root root 15060 Oct 17 10:50 /etc/init.d/dummy
> [..]
> Current workarounds:
> - Use the postinstall script to create the file in /etc/init.d, removing this
> <mapping> altogether.
> or
> - Use --force during the installation
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email