Package: flickrfs
Version: 1.3.9.1-4mt
Severity: normal
Tags: patch

Flickrfs will add the tag 'flickrfs' to all pictures the user uploads
and there is no way to control this behaviour.  The patch below makes an
attempt at fixing that.

I'm running flickrfs with this patch applied hence the weird version
number of my Debian package.  It seems to work as intended.

Index: flickrfs-1.3.9.1/flickrfs/flickrfs.py
===================================================================
--- flickrfs-1.3.9.1.orig/flickrfs/flickrfs.py  2007-08-02 09:46:45.000000000 
+0100
+++ flickrfs-1.3.9.1/flickrfs/flickrfs.py       2007-08-02 09:50:16.000000000 
+0100
@@ -56,6 +56,7 @@
   fconfig.write("image.size:\n")
   fconfig.write("sets.sync.int:300\n")
   fconfig.write("stream.sync.int:300\n")
+  fconfig.write("add.default.tag:yes\n")
   fconfig.close()
 
 # Set up logging
@@ -88,6 +89,12 @@
   browserName = cp.get('configuration', 'browser')
 except:
   pass
+try:
+  add_default_tag = True
+  if cp.get('configuration', 'add.default.tag').lower() == 'no':
+    add_default_tag = False
+except:
+  pass
 
 # Retrive the resize string.
 def GetResizeStr():
@@ -185,6 +192,7 @@
 
     # do stuff to set up your filesystem here, if you want
     self._mkdir("/")
+    #self._mkdir("/sets")
     self._mkdir("/tags")
     self._mkdir("/tags/personal")
     self._mkdir("/tags/public")
@@ -912,7 +920,8 @@
 
   def handleUploadingImage(self, path, inode, taglist):
     tags = [ '"%s"'%(a,) for a in taglist]
-    tags.append('flickrfs')
+    if add_default_tag:
+      tags.append('flickrfs')
     taglist = ' '.join(tags)
     log.info('uploading %s with len %s' % 
              (path, self.imgCache.getBufLen(inode.photoId)))


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages flickrfs depends on:
ii  fuse-utils                  2.7.0-1      Filesystem in USErspace (utilities
ii  python                      2.4.4-6      An interactive high-level object-o
ii  python-central              0.5.14       register and build utility for Pyt
ii  python-fuse                 1:0.2-pre3-3 Python bindings for FUSE (Filesyst

Versions of packages flickrfs recommends:
ii  epiphany-browser [w 2.18.3-1mt           Intuitive GNOME web browser
ii  iceweasel [www-brow 2.0.0.5-2            lightweight web browser based on M
ii  imagemagick         7:6.2.4.5.dfsg1-1+b1 Image manipulation programs
ii  w3m [www-browser]   0.5.1-5.1+b1         WWW browsable pager with excellent

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to