From c6d6f99f61aad1888487add628b06a482242f54b Mon Sep 17 00:00:00 2001 From: Julien Lavergne Date: Tue, 2 Aug 2016 21:35:05 +0200 Subject: [PATCH] Fix generate_missing_icons.py with recent GTK --- tools/generate_missing_icons.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/tools/generate_missing_icons.py b/tools/generate_missing_icons.py index 9440afb..06ee766 100644 --- a/tools/generate_missing_icons.py +++ b/tools/generate_missing_icons.py @@ -456,14 +456,15 @@ for icon in list_icons: destination_path = os.path.join(destination_prefix,"imported-" + theme_name,size_location) if theme_name != "Lubuntu": - if theme_name != "hicolor": - if theme_name != "share": - icon_to_copy = Gio.File.new_for_path(path) - destination = Gio.File.new_for_path(os.path.join(destination_path,file_name)) + if theme_name != "icons": + if theme_name != "hicolor": + if theme_name != "share": + icon_to_copy = Gio.File.new_for_path(path) + destination = Gio.File.new_for_path(os.path.join(destination_path,file_name)) - if os.path.exists(destination_path) == False: - os.makedirs(destination_path) + if os.path.exists(destination_path) == False: + os.makedirs(destination_path) - if os.path.exists(destination.get_path()) == False: - if os.path.islink(destination.get_path()) == False: - icon_to_copy.copy(destination, Gio.FileCopyFlags.NOFOLLOW_SYMLINKS) + if os.path.exists(destination.get_path()) == False: + if os.path.islink(destination.get_path()) == False: + icon_to_copy.copy(destination, Gio.FileCopyFlags.NOFOLLOW_SYMLINKS)