mirror of
https://github.com/clearlinux/swupd-server.git
synced 2026-10-04 16:08:29 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3cf2ade205 | ||
|
|
e814a73480 |
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ([2.66])
|
AC_PREREQ([2.66])
|
||||||
AC_INIT(swupd-server, 3.7.4, matthew.johnson@intel.com)
|
AC_INIT(swupd-server, 3.7.5, matthew.johnson@intel.com)
|
||||||
AM_INIT_AUTOMAKE([foreign -Wall -W subdir-objects])
|
AM_INIT_AUTOMAKE([foreign -Wall -W subdir-objects])
|
||||||
AM_SILENT_RULES([yes])
|
AM_SILENT_RULES([yes])
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
|||||||
+8
-1
@@ -45,6 +45,7 @@ static void runtime_state_heuristics(struct file *file)
|
|||||||
/* these are shipped directories that are not themselves state,
|
/* these are shipped directories that are not themselves state,
|
||||||
* rather only their contents are state */
|
* rather only their contents are state */
|
||||||
if ((strcmp(file->filename, "/usr/src/debug") == 0) ||
|
if ((strcmp(file->filename, "/usr/src/debug") == 0) ||
|
||||||
|
(strcmp(file->filename, "/usr/src/kernel") == 0) ||
|
||||||
(strcmp(file->filename, "/dev") == 0) ||
|
(strcmp(file->filename, "/dev") == 0) ||
|
||||||
(strcmp(file->filename, "/home") == 0) ||
|
(strcmp(file->filename, "/home") == 0) ||
|
||||||
(strcmp(file->filename, "/proc") == 0) ||
|
(strcmp(file->filename, "/proc") == 0) ||
|
||||||
@@ -56,6 +57,12 @@ static void runtime_state_heuristics(struct file *file)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* the contents of these directory are not state,
|
||||||
|
* but it belongs to a state directory */
|
||||||
|
if ((strncmp(file->filename, "/usr/src/kernel/", 16) == 0)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* the contents of these directory are state, ideally this never
|
/* the contents of these directory are state, ideally this never
|
||||||
* triggers if our package builds are clean */
|
* triggers if our package builds are clean */
|
||||||
if ((strncmp(file->filename, "/dev/", 5) == 0) ||
|
if ((strncmp(file->filename, "/dev/", 5) == 0) ||
|
||||||
@@ -72,7 +79,7 @@ static void runtime_state_heuristics(struct file *file)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* these are commonly added directories for user customizatio,
|
/* these are commonly added directories for user customization,
|
||||||
* ideally this never triggers if our package builds are clean */
|
* ideally this never triggers if our package builds are clean */
|
||||||
if ((strncmp(file->filename, "/acct", 5) == 0) ||
|
if ((strncmp(file->filename, "/acct", 5) == 0) ||
|
||||||
(strncmp(file->filename, "/cache", 6) == 0) ||
|
(strncmp(file->filename, "/cache", 6) == 0) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user