summaryrefslogtreecommitdiff
path: root/pcr/mugshot/missing_default_face.patch
diff options
context:
space:
mode:
authorDavid P <megver83@openmailbox.org>2017-03-27 10:07:22 -0300
committerDavid P <megver83@openmailbox.org>2017-03-27 10:07:22 -0300
commita284aeb36f9b07c11b3fbdfaa70cf654a98d2cb9 (patch)
treee0652b20ae0ceed62d0a56f4e69027a946ba0763 /pcr/mugshot/missing_default_face.patch
parent3ca4240e209da61acc31f5c4467b0bba283a5c6b (diff)
downloadabslibre-a284aeb36f9b07c11b3fbdfaa70cf654a98d2cb9.tar.gz
abslibre-a284aeb36f9b07c11b3fbdfaa70cf654a98d2cb9.tar.bz2
abslibre-a284aeb36f9b07c11b3fbdfaa70cf654a98d2cb9.zip
Added mugshot
Diffstat (limited to 'pcr/mugshot/missing_default_face.patch')
-rw-r--r--pcr/mugshot/missing_default_face.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/pcr/mugshot/missing_default_face.patch b/pcr/mugshot/missing_default_face.patch
new file mode 100644
index 000000000..4502e84f0
--- /dev/null
+++ b/pcr/mugshot/missing_default_face.patch
@@ -0,0 +1,28 @@
+diff -Naur ./mugshot-0.3.2.old/mugshot/MugshotWindow.py ./mugshot-0.3.2/mugshot/MugshotWindow.py
+--- ./mugshot-0.3.2.old/mugshot/MugshotWindow.py 2016-11-06 09:13:47.604768017 -0500
++++ ./mugshot-0.3.2/mugshot/MugshotWindow.py 2016-11-06 09:14:11.431116827 -0500
+@@ -257,10 +257,11 @@
+ logger.debug('Found profile image: %s' % str(image))
+
+ if os.path.isfile(face):
+- if os.path.samefile(image, face):
+- self.updated_image = face
+- else:
+- self.updated_image = None
++ if os.path.exists(image):
++ if os.path.samefile(image, face):
++ self.updated_image = face
++ else:
++ self.updated_image = None
+ self.set_user_image(face)
+ elif os.path.isfile(image):
+ self.updated_image = image
+@@ -612,7 +613,7 @@
+ success = False
+
+ logger.debug('Updating Office Phone...')
+-
++
+ command = "%s -w \"%s\" %s" % (chfn, office_phone, username)
+ # Office phone is potentially handled by the -o flag in newer versions of chfn
+ command2 = "%s -o \"%s\" %s" % (chfn, office_phone, username)