Package Details: dropbox-cli 2015.10.28-1

Git Clone URL: https://aur.archlinux.org/dropbox-cli.git (read-only)
Package Base: dropbox-cli
Description: Command line interface for dropbox
Upstream URL: http://www.dropbox.com
Licenses: GPL
Submitter: msquared
Maintainer: klusark
Last Packager: klusark
Votes: 446
Popularity: 2.417086
First Submitted: 2010-02-04 14:03
Last Updated: 2015-11-02 16:25

Latest Comments

doron.behar commented on 2016-10-06 16:16

Does anyone is getting this message?
```
Traceback (most recent call last):
File "/usr/bin/dropbox-cli", line 826, in <module>
@alias('stat')
File "/usr/bin/dropbox-cli", line 705, in command
meth.__doc__ += u"\nAliases: %s" % ",".join(meth_aliases)
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'unicode'
```

kaslusimoes commented on 2015-11-03 14:06

@bluesheep, @Jones:
Try cleaning you build directories. It should work by now

Jones commented on 2015-11-02 16:13

Same for me: "dropbox.py did not pass the validity check"

bluesheep commented on 2015-08-30 11:32

I get the error that 'dropbox.py' did not pass the validity check. Could you take a look at that please?

erikw commented on 2015-08-28 15:05

How to easily add a 'restart' command to dropbox-cli :-)

https://github.com/erikw/dotfiles/blob/personal/bin/dropbox

1ace commented on 2015-03-03 07:50

I also suggest adding this patch, making `dropbox-cli running` compatible with the shell (why wasn't it already?)
https://gist.github.com/c789158b4c4adf612dc4

This allows for something like this for instance:
if dropbox-cli running
then
dropbox-cli status
else
dropbox-cli start
fi

1ace commented on 2015-03-03 07:49

I also suggest adding this patch, making `dropbox-cli running` compatible with the shell (why wasn't it already?)
https://gist.github.com/c789158b4c4adf612dc4

This allows for something like this for instance:
# if dropbox-cli running
# then
# dropbox-cli status
# else
# dropbox-cli start
# fi

klusark commented on 2015-02-14 07:33

Thanks for the suggestions everyone. I'll update the package as soon as I'm home from vacation, this Monday.

thiagowfx commented on 2015-02-14 04:07

Hi, could you please rename /usr/bin/dropbox to /usr/bin/dropbox-cli, so this doesn't conflict with the dropbox package anymore? See @cfr42's suggestion.

Also, since this script depends on dropboxd, I'd suggest you to alter the dropbox-cli-arch.patch file to use the /opt/dropbox/dropbox file now (instead of /usr/bin/dropboxd). That is, this patch would solve everything:

--- PKGBUILD 2014-11-20 03:35:37.000000000 -0200
+++ PKGBUILD.new 2015-02-14 02:06:50.029800477 -0200
@@ -25,5 +25,5 @@
}

package() {
- install -D -m 755 "$srcdir/build/dropbox.py" "$pkgdir/usr/bin/dropbox"
+ install -D -m 755 "$srcdir/build/dropbox.py" "$pkgdir/usr/bin/$pkgname"
}
--- dropbox.py 2011-04-04 20:32:01.000000000 +0200
+++ dropbox.py 2011-04-28 22:55:17.976623103 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
#
# Copyright 2008 Evenflow, Inc.
#
@@ -610,6 +610,8 @@

def start_dropbox():
db_path = os.path.expanduser(u"~/.dropbox-dist/dropboxd").encode(sys.getfilesystemencoding())
+ if not os.path.exists(db_path):
+ db_path = u"/opt/dropbox/dropbox"
if os.access(db_path, os.X_OK):
f = open("/dev/null", "w")
# we don't reap the child because we're gonna die anyway, let init do it

cfr42 commented on 2015-02-12 23:09

Maybe something like this?

--- PKGBUILD 2014-11-20 05:35:37.000000000 +0000
+++ PKGBUILD 2015-02-12 23:02:30.672555629 +0000
@@ -25,5 +25,6 @@
}

package() {
- install -D -m 755 "$srcdir/build/dropbox.py" "$pkgdir/usr/bin/dropbox"
+ install -D -m 755 "$srcdir/build/dropbox.py" "$pkgdir/usr/bin/dropbox-cli"
+ ln -s ../../opt/dropbox/dropbox "$pkgdir"/usr/bin/dropboxd
}

The script seems to use /usr/bin/dropboxd, which is why I had the package add a sym link.

All comments