touch an update file on completion

SVN revision: 54886
This commit is contained in:
Sebastian Dransfeld 2010-11-23 13:30:39 +00:00
parent f6cb6541e3
commit 15a241534c
2 changed files with 25 additions and 0 deletions

View File

@ -392,6 +392,19 @@ main(int argc, char **argv)
/* rename tmp files to real files */
if (rename(util_file, efreet_desktop_util_cache_file()) < 0) goto error;
if (rename(file, efreet_desktop_cache_file()) < 0) goto error;
/* touch update file */
snprintf(file, sizeof(file), "%s/.efreet/desktop_data.update", efreet_home_dir_get());
tmpfd = open(file, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
if (tmpfd >= 0)
{
struct timeval tv[2];
gettimeofday(&tv[0], NULL);
tv[1] = tv[0];
futimes(tmpfd, tv);
close(tmpfd);
}
}
else
{

View File

@ -440,6 +440,18 @@ main(int argc, char **argv)
eina_list_free(extensions);
/* touch update file */
snprintf(file, sizeof(file), "%s/.efreet/icon_data.update", efreet_home_dir_get());
tmpfd = open(file, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
if (tmpfd >= 0)
{
struct timeval tv[2];
gettimeofday(&tv[0], NULL);
tv[1] = tv[0];
futimes(tmpfd, tv);
close(tmpfd);
}
efreet_shutdown();
ecore_shutdown();
eet_shutdown();