[issue20337] bdist_rpm should support %config(noreplace)

2014-03-13 Thread KV

KV added the comment:

Configuration files in RPMs can have several attributes, one important one is 
'noreplace' (i.e., "%config(noreplace) file-name").  This allows for 
configuration files that have been changed after the RPM has been installed to 
not be over-written when the RPM is updated -- for example with a later version.
This is very important, because you often want to customize your configuration 
-- that's what the configuration is for after all.  Without 'noreplace', your 
changes will be over-written by the updated RPM's "stock" configuration file.

I'm sad to see it can't be made available for 2.6/2.7.  I realize this is very 
old, but that's the version that's stock on RedHat Enterprise Linux -- which 
many of us are forced to use through our work environments.

On Thursday, March 13, 2014 5:24 AM, Éric Araujo  wrote:

>Éric Araujo added the comment:
>
>Can you give more information about this change?
>
>As a new feature, it cannot go into 2.7.
>
>
>--
>components: +Distutils -Build
>nosy: +eric.araujo
>type:  -> enhancement
>versions: +Python 3.5 -Python 2.7
>
>___
>Python tracker 
><http://bugs.python.org/issue20337>
>___
>
>

--

___
Python tracker 
<http://bugs.python.org/issue20337>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20337] bdist_rpm should support %config(noreplace)

2014-01-21 Thread KV

New submission from KV:

bdist_rpm should support handling %config(noreplace) to help with packaging.

Patch attached.

--
components: Build
files: bdist_rpm-add-config-file.diff
keywords: patch
messages: 208715
nosy: kv
priority: normal
severity: normal
status: open
title: bdist_rpm should support %config(noreplace)
versions: Python 2.7
Added file: http://bugs.python.org/file33602/bdist_rpm-add-config-file.diff

___
Python tracker 
<http://bugs.python.org/issue20337>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com