mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 05:20:19 +01:00
ifcfg-rh: ignore .augnew and .augtmp files used by netcf
This commit is contained in:
parent
3a32e5c31d
commit
01ad64299a
3 changed files with 7 additions and 1 deletions
|
|
@ -33,6 +33,8 @@
|
|||
#define ORIG_TAG ".orig"
|
||||
#define REJ_TAG ".rej"
|
||||
#define RPMNEW_TAG ".rpmnew"
|
||||
#define AUGNEW_TAG ".augnew"
|
||||
#define AUGTMP_TAG ".augtmp"
|
||||
|
||||
#define IFCFG_DIR SYSCONFDIR"/sysconfig/network-scripts"
|
||||
|
||||
|
|
|
|||
|
|
@ -153,6 +153,8 @@ int main (int argc, char **argv)
|
|||
test_ignored ("ignored-orig", "ifcfg-FooBar" ORIG_TAG, TRUE);
|
||||
test_ignored ("ignored-rej", "ifcfg-FooBar" REJ_TAG, TRUE);
|
||||
test_ignored ("ignored-rpmnew", "ifcfg-FooBar" RPMNEW_TAG, TRUE);
|
||||
test_ignored ("ignored-augnew", "ifcfg-FooBar" AUGNEW_TAG, TRUE);
|
||||
test_ignored ("ignored-augtmp", "ifcfg-FooBar" AUGTMP_TAG, TRUE);
|
||||
|
||||
base = g_path_get_basename (argv[0]);
|
||||
fprintf (stdout, "%s: SUCCESS\n", base);
|
||||
|
|
|
|||
|
|
@ -160,7 +160,9 @@ utils_should_ignore_file (const char *filename, gboolean only_ifcfg)
|
|||
&& !check_suffix (base, TILDE_TAG)
|
||||
&& !check_suffix (base, ORIG_TAG)
|
||||
&& !check_suffix (base, REJ_TAG)
|
||||
&& !check_suffix (base, RPMNEW_TAG))
|
||||
&& !check_suffix (base, RPMNEW_TAG)
|
||||
&& !check_suffix (base, AUGNEW_TAG)
|
||||
&& !check_suffix (base, AUGTMP_TAG))
|
||||
ignore = FALSE;
|
||||
|
||||
g_free (base);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue