builder: Add some printouts if we remove stale .pyc files

This makes it easier to figure out why it disappeared
tingping/wmclass
Alexander Larsson 2016-08-11 07:50:47 +02:00
parent 84c7328af8
commit 348b7f9ab4
1 changed files with 4 additions and 2 deletions

View File

@ -1104,8 +1104,10 @@ fixup_python_timestamp (int dfd,
if (remove_pyc)
{
if (unlinkat(dfd_iter.fd, dent->d_name, 0) != 0)
g_warning ("Unable to delete %s", dent->d_name);
g_autofree char *child_full_path = g_build_filename (full_path, dent->d_name, NULL);
g_print ("Removing stale python bytecode file %s\n", child_full_path);
if (unlinkat (dfd_iter.fd, dent->d_name, 0) != 0)
g_warning ("Unable to delete %s", child_full_path);
continue;
}