Browse Source

Revert "just testing, remember to revert"

master
John ShaggyTwoDope Jenkins 7 years ago
parent
commit
410e891caf
  1. 7
      drive-git/PKGBUILD
  2. BIN
      drive-git/drive-git-r292.7dbd8bf-1-any.pkg.tar.xz
  3. BIN
      drive-git/drive-git-r292.7dbd8bf-1.src.tar.gz
  4. 25
      drive-git/drive-git/FETCH_HEAD
  5. BIN
      drive-git/drive-git/objects/pack/pack-f6449c886b92477dd13bd4143d71165f3f0605de.idx
  6. BIN
      drive-git/drive-git/objects/pack/pack-f6449c886b92477dd13bd4143d71165f3f0605de.pack
  7. 1
      drive-git/drive-git/refs/heads/checksum-off-by-default
  8. 1
      drive-git/drive-git/refs/heads/diff-prettify
  9. 1
      drive-git/drive-git/refs/heads/file-stream-progress
  10. 2
      drive-git/drive-git/refs/heads/master
  11. 1
      drive-git/drive-git/refs/heads/matches
  12. 1
      drive-git/drive-git/refs/heads/quiet
  13. 1
      drive-git/drive-git/refs/heads/resolve-conflict-toggles
  14. 1
      drive-git/drive-git/refs/heads/sorting
  15. 1
      drive-git/drive-git/refs/heads/warn-on-dups
  16. 2
      drive-git/drive-git/refs/pull/121/head
  17. 1
      drive-git/drive-git/refs/pull/121/merge
  18. 1
      drive-git/drive-git/refs/pull/122/merge
  19. 1
      drive-git/drive-git/refs/pull/123/merge
  20. 1
      drive-git/drive-git/refs/pull/126/head
  21. 1
      drive-git/drive-git/refs/pull/127/head
  22. 1
      drive-git/drive-git/refs/pull/128/head
  23. 1
      drive-git/drive-git/refs/pull/128/merge
  24. 1
      drive-git/drive-git/refs/pull/131/head
  25. 1
      drive-git/drive-git/refs/pull/133/head
  26. 1
      drive-git/drive-git/refs/pull/144/head
  27. 1
      drive-git/drive-git/refs/pull/146/head
  28. 1
      drive-git/drive-git/refs/tags/v0.1.6
  29. BIN
      drive-git/pkg/drive-git/.MTREE
  30. 8
      drive-git/pkg/drive-git/.PKGINFO
  31. 177
      drive-git/pkg/drive-git/usr/share/licenses/drive-git/LICENSE
  32. 6
      drive/PKGBUILD
  33. BIN
      drive/drive-0.1.6-1-x86_64.pkg.tar.xz
  34. BIN
      drive/drive-0.1.6-1.src.tar.gz
  35. BIN
      drive/pkg/drive/.MTREE
  36. 6
      drive/pkg/drive/.PKGINFO
  37. 177
      drive/pkg/drive/usr/share/licenses/drive/LICENSE
  38. 4
      rtv-git/PKGBUILD
  39. BIN
      rtv-git/pkg/rtv-git/.MTREE
  40. 8
      rtv-git/pkg/rtv-git/.PKGINFO
  41. 6
      rtv-git/pkg/rtv-git/usr/bin/rtv
  42. 0
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv-1.2-py3.4.egg-info/PKG-INFO
  43. 0
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv-1.2-py3.4.egg-info/SOURCES.txt
  44. 0
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv-1.2-py3.4.egg-info/dependency_links.txt
  45. 0
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv-1.2-py3.4.egg-info/entry_points.txt
  46. 0
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv-1.2-py3.4.egg-info/requires.txt
  47. 0
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv-1.2-py3.4.egg-info/top_level.txt
  48. 26
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__main__.py
  49. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/__init__.cpython-34.pyc
  50. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/__init__.cpython-34.pyo
  51. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/__main__.cpython-34.pyc
  52. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/__main__.cpython-34.pyo
  53. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/__version__.cpython-34.pyc
  54. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/__version__.cpython-34.pyo
  55. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/config.cpython-34.pyc
  56. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/config.cpython-34.pyo
  57. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/content.cpython-34.pyc
  58. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/content.cpython-34.pyo
  59. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/curses_helpers.cpython-34.pyc
  60. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/curses_helpers.cpython-34.pyo
  61. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/docs.cpython-34.pyc
  62. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/docs.cpython-34.pyo
  63. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/exceptions.cpython-34.pyc
  64. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/exceptions.cpython-34.pyo
  65. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/helpers.cpython-34.pyc
  66. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/helpers.cpython-34.pyo
  67. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/page.cpython-34.pyc
  68. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/page.cpython-34.pyo
  69. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/submission.cpython-34.pyc
  70. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/submission.cpython-34.pyo
  71. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/subreddit.cpython-34.pyc
  72. BIN
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/subreddit.cpython-34.pyo
  73. 2
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__version__.py
  74. 131
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/content.py
  75. 18
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/curses_helpers.py
  76. 25
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/docs.py
  77. 28
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/exceptions.py
  78. 72
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/page.py
  79. 79
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/submission.py
  80. 111
      rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/subreddit.py
  81. 22
      rtv-git/pkg/rtv-git/usr/share/licenses/rtv-git/LICENSE
  82. BIN
      rtv-git/rtv-git-r226.6d1ac5d-1.src.tar.gz
  83. BIN
      rtv-git/rtv-git-r226.ca41b77-1-any.pkg.tar.xz
  84. BIN
      rtv-git/rtv-git-r273.6036d90-1-any.pkg.tar.xz
  85. BIN
      rtv-git/rtv-git-r273.6036d90-1.src.tar.gz
  86. 44
      rtv-git/rtv/FETCH_HEAD
  87. BIN
      rtv-git/rtv/objects/pack/pack-021cc7b98d3db2a0e05722ec1bcbf305483d90c7.idx
  88. BIN
      rtv-git/rtv/objects/pack/pack-05ea98a663c898ac1156ca9fb094a5697bd183ee.idx
  89. BIN
      rtv-git/rtv/objects/pack/pack-05ea98a663c898ac1156ca9fb094a5697bd183ee.pack
  90. 20
      rtv-git/rtv/packed-refs
  91. 6
      rtv/PKGBUILD
  92. BIN
      rtv/pkg/rtv/.MTREE
  93. 8
      rtv/pkg/rtv/.PKGINFO
  94. 6
      rtv/pkg/rtv/usr/bin/rtv
  95. 25
      rtv/pkg/rtv/usr/lib/python3.4/site-packages/rtv-1.2.1-py3.4.egg-info/PKG-INFO
  96. 0
      rtv/pkg/rtv/usr/lib/python3.4/site-packages/rtv-1.2.1-py3.4.egg-info/SOURCES.txt
  97. 0
      rtv/pkg/rtv/usr/lib/python3.4/site-packages/rtv-1.2.1-py3.4.egg-info/dependency_links.txt
  98. 0
      rtv/pkg/rtv/usr/lib/python3.4/site-packages/rtv-1.2.1-py3.4.egg-info/entry_points.txt
  99. 0
      rtv/pkg/rtv/usr/lib/python3.4/site-packages/rtv-1.2.1-py3.4.egg-info/requires.txt
  100. 0
      rtv/pkg/rtv/usr/lib/python3.4/site-packages/rtv-1.2.1-py3.4.egg-info/top_level.txt
  101. Some files were not shown because too many files have changed in this diff Show More

7
drive-git/PKGBUILD

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
# Contributor: Timofey Titovets <nefelim4ag@gmail.com>
pkgname=drive-git
pkgver=r263.45c89dc
pkgver=r292.7dbd8bf
pkgrel=1
pkgdesc="Drive is a tiny program to pull or push Google Drive files. You need go1.2 installed in order to build the program."
arch=('any')
@ -27,4 +27,9 @@ build() { @@ -27,4 +27,9 @@ build() {
package() {
mkdir -p "$pkgdir/usr/bin"
install -p -m755 "$srcdir/bin/"* "$pkgdir/usr/bin"
cd "$srcdir/$pkgname"
mkdir -p $pkgdir/usr/share/licenses/$pkgname
install -m 0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/
}

BIN
drive-git/drive-git-r292.7dbd8bf-1-any.pkg.tar.xz

Binary file not shown.

BIN
drive-git/drive-git-r292.7dbd8bf-1.src.tar.gz

Binary file not shown.

25
drive-git/drive-git/FETCH_HEAD

@ -1,9 +1,10 @@ @@ -1,9 +1,10 @@
0e5b686eea21f21ddd51db1c178539fb7362267d not-for-merge branch 'diff-prettify' of https://github.com/odeke-em/drive
45c89dcaf4eb2de00104b01c5440b92e63a3a0f9 not-for-merge branch 'master' of https://github.com/odeke-em/drive
fda55c7cb0997e39cc222e659f52a75f92acf785 not-for-merge branch 'checksum-off-by-default' of https://github.com/odeke-em/drive
8559df2388c01e4f4b712a476cb7631e1c5cb464 not-for-merge branch 'file-stream-progress' of https://github.com/odeke-em/drive
7dbd8bf4629805fc257be30bc932be0aaa9efea1 not-for-merge branch 'master' of https://github.com/odeke-em/drive
8487a598b42192c351c0d6b731068cc69ac6169f not-for-merge branch 'matches' of https://github.com/odeke-em/drive
3b5799f37559941189774333f5a9c62f20faec56 not-for-merge branch 'oauth2-migration' of https://github.com/odeke-em/drive
3b3ef5ce68116fdeca80f2fee953f27c24a2713a not-for-merge branch 'quiet' of https://github.com/odeke-em/drive
a5e91ef2e2adf7755a00b7009a3ec8b151eef198 not-for-merge branch 'resolve-conflict-toggles' of https://github.com/odeke-em/drive
d490b3733671f07cfc837ae34691a1cbacb49d18 not-for-merge branch 'sorting' of https://github.com/odeke-em/drive
d44059edf4893bfd5901de9336cc5b1612f6bff4 not-for-merge branch 'sorting' of https://github.com/odeke-em/drive
fcf32398966cd63e284a8011677f373517ff3426 not-for-merge branch 'warn-on-dups' of https://github.com/odeke-em/drive
16201967d6a52e2ff635e84e6a274f2dd50c5f0b not-for-merge 'refs/pull/1/head' of https://github.com/odeke-em/drive
85bcf23f56f18bfc0613c96166f11b0bb7fbc95e not-for-merge 'refs/pull/101/head' of https://github.com/odeke-em/drive
eed22f67a2d457ad6fa4592f7637448369c73615 not-for-merge 'refs/pull/102/head' of https://github.com/odeke-em/drive
@ -13,13 +14,18 @@ fc09bdc5976d3eb6786c89b2b1066e4fa7ce7d50 not-for-merge 'refs/pull/111/head' of h @@ -13,13 +14,18 @@ fc09bdc5976d3eb6786c89b2b1066e4fa7ce7d50 not-for-merge 'refs/pull/111/head' of h
3903fc4d718e32ab3972e199436b1aaaf601c493 not-for-merge 'refs/pull/113/head' of https://github.com/odeke-em/drive
f79228840e94b14a533545bfd4a34e49da627722 not-for-merge 'refs/pull/120/head' of https://github.com/odeke-em/drive
8d560e18d02bf11b2ecc1140147ca4f6804cc3df not-for-merge 'refs/pull/120/merge' of https://github.com/odeke-em/drive
a5e91ef2e2adf7755a00b7009a3ec8b151eef198 not-for-merge 'refs/pull/121/head' of https://github.com/odeke-em/drive
a4f6b59cf3206c1d57a23ba9aad94cdcd331bc3a not-for-merge 'refs/pull/121/merge' of https://github.com/odeke-em/drive
8f515bccedf61968b71281e23e5892146aa057e8 not-for-merge 'refs/pull/121/head' of https://github.com/odeke-em/drive
0e5b686eea21f21ddd51db1c178539fb7362267d not-for-merge 'refs/pull/122/head' of https://github.com/odeke-em/drive
70f97d161c342b040d9d18c1a6f353fa72d41576 not-for-merge 'refs/pull/122/merge' of https://github.com/odeke-em/drive
3b3ef5ce68116fdeca80f2fee953f27c24a2713a not-for-merge 'refs/pull/123/head' of https://github.com/odeke-em/drive
2099241e31e5e3faa7cb9d32ab0856cf82ae6e1e not-for-merge 'refs/pull/123/merge' of https://github.com/odeke-em/drive
e667aa254efcbcd240c3341e558015ef5ffeb6ad not-for-merge 'refs/pull/126/head' of https://github.com/odeke-em/drive
a659f363f37f44aa7015319fe9c82a4431819a99 not-for-merge 'refs/pull/127/head' of https://github.com/odeke-em/drive
fda55c7cb0997e39cc222e659f52a75f92acf785 not-for-merge 'refs/pull/128/head' of https://github.com/odeke-em/drive
ba44041c9639d55b5c0de84ea7884eb8b76a4bd5 not-for-merge 'refs/pull/128/merge' of https://github.com/odeke-em/drive
65d690b2f6bd22f014b439f91cfd977d0ea3cd86 not-for-merge 'refs/pull/13/head' of https://github.com/odeke-em/drive
83e0ac2c8b0b5d828499b6d1678e0de1f7e90734 not-for-merge 'refs/pull/131/head' of https://github.com/odeke-em/drive
2d59fe66eb6bfa149c56596c485a616cf151daac not-for-merge 'refs/pull/133/head' of https://github.com/odeke-em/drive
8b36577ea1fd924812d4c140e72554d76befe33e not-for-merge 'refs/pull/144/head' of https://github.com/odeke-em/drive
8487a598b42192c351c0d6b731068cc69ac6169f not-for-merge 'refs/pull/146/head' of https://github.com/odeke-em/drive
a9538461ae2e746625d9f84e04d7d41a20475205 not-for-merge 'refs/pull/16/head' of https://github.com/odeke-em/drive
0471cf89b87baa4160bcc27ca2c8f21b10da3f28 not-for-merge 'refs/pull/17/head' of https://github.com/odeke-em/drive
a2ba65854ad640e6f95761ac869fd7c2edb288e2 not-for-merge 'refs/pull/21/head' of https://github.com/odeke-em/drive
@ -62,3 +68,4 @@ b322dc12ef9b5d51088a0e56e19d03a5c78908ba not-for-merge tag 'v0.1.2' of https://g @@ -62,3 +68,4 @@ b322dc12ef9b5d51088a0e56e19d03a5c78908ba not-for-merge tag 'v0.1.2' of https://g
1a2f8374321d1d8d0bfb0f2f7ffd6a5e691cad19 not-for-merge tag 'v0.1.3' of https://github.com/odeke-em/drive
29d4fdbbaafbb37eb2c48a9b1c495fadbe4aa2b1 not-for-merge tag 'v0.1.4' of https://github.com/odeke-em/drive
63615fc71d122f85923210490d0f883588aa3ba3 not-for-merge tag 'v0.1.5' of https://github.com/odeke-em/drive
e9c9e47a6a47bcd2524d26d7cd8ac85faab18704 not-for-merge tag 'v0.1.6' of https://github.com/odeke-em/drive

BIN
drive-git/drive-git/objects/pack/pack-f6449c886b92477dd13bd4143d71165f3f0605de.idx

Binary file not shown.

BIN
drive-git/drive-git/objects/pack/pack-f6449c886b92477dd13bd4143d71165f3f0605de.pack

Binary file not shown.

1
drive-git/drive-git/refs/heads/checksum-off-by-default

@ -0,0 +1 @@ @@ -0,0 +1 @@
fda55c7cb0997e39cc222e659f52a75f92acf785

1
drive-git/drive-git/refs/heads/diff-prettify

@ -1 +0,0 @@ @@ -1 +0,0 @@
0e5b686eea21f21ddd51db1c178539fb7362267d

1
drive-git/drive-git/refs/heads/file-stream-progress

@ -0,0 +1 @@ @@ -0,0 +1 @@
8559df2388c01e4f4b712a476cb7631e1c5cb464

2
drive-git/drive-git/refs/heads/master

@ -1 +1 @@ @@ -1 +1 @@
45c89dcaf4eb2de00104b01c5440b92e63a3a0f9
7dbd8bf4629805fc257be30bc932be0aaa9efea1

1
drive-git/drive-git/refs/heads/matches

@ -0,0 +1 @@ @@ -0,0 +1 @@
8487a598b42192c351c0d6b731068cc69ac6169f

1
drive-git/drive-git/refs/heads/quiet

@ -1 +0,0 @@ @@ -1 +0,0 @@
3b3ef5ce68116fdeca80f2fee953f27c24a2713a

1
drive-git/drive-git/refs/heads/resolve-conflict-toggles

@ -1 +0,0 @@ @@ -1 +0,0 @@
a5e91ef2e2adf7755a00b7009a3ec8b151eef198

1
drive-git/drive-git/refs/heads/sorting

@ -0,0 +1 @@ @@ -0,0 +1 @@
d44059edf4893bfd5901de9336cc5b1612f6bff4

1
drive-git/drive-git/refs/heads/warn-on-dups

@ -0,0 +1 @@ @@ -0,0 +1 @@
fcf32398966cd63e284a8011677f373517ff3426

2
drive-git/drive-git/refs/pull/121/head

@ -1 +1 @@ @@ -1 +1 @@
a5e91ef2e2adf7755a00b7009a3ec8b151eef198
8f515bccedf61968b71281e23e5892146aa057e8

1
drive-git/drive-git/refs/pull/121/merge

@ -1 +0,0 @@ @@ -1 +0,0 @@
a4f6b59cf3206c1d57a23ba9aad94cdcd331bc3a

1
drive-git/drive-git/refs/pull/122/merge

@ -1 +0,0 @@ @@ -1 +0,0 @@
70f97d161c342b040d9d18c1a6f353fa72d41576

1
drive-git/drive-git/refs/pull/123/merge

@ -1 +0,0 @@ @@ -1 +0,0 @@
2099241e31e5e3faa7cb9d32ab0856cf82ae6e1e

1
drive-git/drive-git/refs/pull/126/head

@ -0,0 +1 @@ @@ -0,0 +1 @@
e667aa254efcbcd240c3341e558015ef5ffeb6ad

1
drive-git/drive-git/refs/pull/127/head

@ -0,0 +1 @@ @@ -0,0 +1 @@
a659f363f37f44aa7015319fe9c82a4431819a99

1
drive-git/drive-git/refs/pull/128/head

@ -0,0 +1 @@ @@ -0,0 +1 @@
fda55c7cb0997e39cc222e659f52a75f92acf785

1
drive-git/drive-git/refs/pull/128/merge

@ -0,0 +1 @@ @@ -0,0 +1 @@
ba44041c9639d55b5c0de84ea7884eb8b76a4bd5

1
drive-git/drive-git/refs/pull/131/head

@ -0,0 +1 @@ @@ -0,0 +1 @@
83e0ac2c8b0b5d828499b6d1678e0de1f7e90734

1
drive-git/drive-git/refs/pull/133/head

@ -0,0 +1 @@ @@ -0,0 +1 @@
2d59fe66eb6bfa149c56596c485a616cf151daac

1
drive-git/drive-git/refs/pull/144/head

@ -0,0 +1 @@ @@ -0,0 +1 @@
8b36577ea1fd924812d4c140e72554d76befe33e

1
drive-git/drive-git/refs/pull/146/head

@ -0,0 +1 @@ @@ -0,0 +1 @@
8487a598b42192c351c0d6b731068cc69ac6169f

1
drive-git/drive-git/refs/tags/v0.1.6

@ -0,0 +1 @@ @@ -0,0 +1 @@
e9c9e47a6a47bcd2524d26d7cd8ac85faab18704

BIN
drive-git/pkg/drive-git/.MTREE

Binary file not shown.

8
drive-git/pkg/drive-git/.PKGINFO

@ -1,13 +1,13 @@ @@ -1,13 +1,13 @@
# Generated by makepkg 4.2.1
# using fakeroot version 1.20.2
# Tue Mar 24 22:07:42 UTC 2015
# Mon Apr 6 03:08:26 UTC 2015
pkgname = drive-git
pkgver = r263.45c89dc-1
pkgver = r292.7dbd8bf-1
pkgdesc = Drive is a tiny program to pull or push Google Drive files. You need go1.2 installed in order to build the program.
url = https://github.com/odeke-em/drive
builddate = 1427234862
builddate = 1428289706
packager = Unknown Packager
size = 8659968
size = 8682496
arch = any
license = Apache
conflict = drive

177
drive-git/pkg/drive-git/usr/share/licenses/drive-git/LICENSE

@ -0,0 +1,177 @@ @@ -0,0 +1,177 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS

6
drive/PKGBUILD

@ -31,9 +31,11 @@ build() { @@ -31,9 +31,11 @@ build() {
}
package() {
cd "$pkgname-$pkgver/cmd/drive"
cd "$srcdir/$pkgname-$pkgver/cmd/drive"
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
cd "$srcdir/$pkgname-$pkgver"
mkdir -p $pkgdir/usr/share/licenses/$pkgname
install -m 0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/
}
# vim:set ts=2 sw=2 et:

BIN
drive/drive-0.1.6-1-x86_64.pkg.tar.xz

Binary file not shown.

BIN
drive/drive-0.1.6-1.src.tar.gz

Binary file not shown.

BIN
drive/pkg/drive/.MTREE

Binary file not shown.

6
drive/pkg/drive/.PKGINFO

@ -1,13 +1,13 @@ @@ -1,13 +1,13 @@
# Generated by makepkg 4.2.1
# using fakeroot version 1.20.2
# Sun Mar 29 04:02:37 UTC 2015
# Mon Apr 6 03:08:58 UTC 2015
pkgname = drive
pkgver = 0.1.6-1
pkgdesc = Pull or push Google Drive files
url = http://github.com/odeke-em/drive
builddate = 1427601757
builddate = 1428289738
packager = Unknown Packager
size = 8685568
size = 8708096
arch = x86_64
license = Apache
conflict = drive-git

177
drive/pkg/drive/usr/share/licenses/drive/LICENSE

@ -0,0 +1,177 @@ @@ -0,0 +1,177 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS

4
rtv-git/PKGBUILD

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
# Maintainer: John Jenkins twodopeshaggy@gmail.com
pkgname=rtv-git
pkgver=r226.6d1ac5d
pkgver=r273.6036d90
pkgrel=1
pkgdesc="Browse Reddit from your terminal"
arch=('any')
@ -19,4 +19,6 @@ pkgver() { @@ -19,4 +19,6 @@ pkgver() {
package() {
cd "$srcdir/rtv"
python setup.py install --root="$pkgdir/" --optimize=1
mkdir -p $pkgdir/usr/share/licenses/$pkgname
install -m 0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/
}

BIN
rtv-git/pkg/rtv-git/.MTREE

Binary file not shown.

8
rtv-git/pkg/rtv-git/.PKGINFO

@ -1,13 +1,13 @@ @@ -1,13 +1,13 @@
# Generated by makepkg 4.2.1
# using fakeroot version 1.20.2
# Thu Apr 2 03:20:06 UTC 2015
# Mon Apr 6 03:01:16 UTC 2015
pkgname = rtv-git
pkgver = r226.ca41b77-1
pkgver = r273.6036d90-1
pkgdesc = Browse Reddit from your terminal
url = https://github.com/michael-lazar/rtv
builddate = 1427944806
builddate = 1428289276
packager = Unknown Packager
size = 201728
size = 230400
arch = any
license = MIT
depend = ncurses

6
rtv-git/pkg/rtv-git/usr/bin/rtv

@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
#!/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'rtv==1.1.2','console_scripts','rtv'
__requires__ = 'rtv==1.1.2'
# EASY-INSTALL-ENTRY-SCRIPT: 'rtv==1.2','console_scripts','rtv'
__requires__ = 'rtv==1.2'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('rtv==1.1.2', 'console_scripts', 'rtv')()
load_entry_point('rtv==1.2', 'console_scripts', 'rtv')()
)

0
rtv/pkg/rtv/usr/lib/python3.4/site-packages/rtv-1.2-py3.4.egg-info/PKG-INFO → rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv-1.2-py3.4.egg-info/PKG-INFO

0
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv-1.1.2-py3.4.egg-info/SOURCES.txt → rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv-1.2-py3.4.egg-info/SOURCES.txt

0
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv-1.1.2-py3.4.egg-info/dependency_links.txt → rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv-1.2-py3.4.egg-info/dependency_links.txt

0
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv-1.1.2-py3.4.egg-info/entry_points.txt → rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv-1.2-py3.4.egg-info/entry_points.txt

0
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv-1.1.2-py3.4.egg-info/requires.txt → rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv-1.2-py3.4.egg-info/requires.txt

0
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv-1.1.2-py3.4.egg-info/top_level.txt → rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv-1.2-py3.4.egg-info/top_level.txt

26
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__main__.py

@ -15,6 +15,7 @@ from .curses_helpers import curses_session @@ -15,6 +15,7 @@ from .curses_helpers import curses_session
from .submission import SubmissionPage
from .subreddit import SubredditPage
from .docs import *
from .__version__ import __version__
__all__ = []
@ -25,14 +26,28 @@ def load_config(): @@ -25,14 +26,28 @@ def load_config():
saved settings for things like the username and password.
"""
config_path = os.path.join(os.path.expanduser('~'), '.rtv')
config = configparser.ConfigParser()
config.read(config_path)
HOME = os.path.expanduser('~')
XDG_CONFIG_HOME = os.getenv('XDG_CONFIG_HOME', os.path.join(HOME, '.config'))
config_paths = [
os.path.join(XDG_CONFIG_HOME, 'rtv', 'rtv.cfg'),
os.path.join(HOME, '.rtv')
]
# read only the first existing config file
for config_path in config_paths:
if os.path.exists(config_path):
config.read(config_path)
break
defaults = {}
if config.has_section('rtv'):
defaults = dict(config.items('rtv'))
if 'unicode' in defaults:
defaults['unicode'] = config.getboolean('rtv', 'unicode')
return defaults
@ -68,6 +83,13 @@ def main(): @@ -68,6 +83,13 @@ def main():
args = command_line()
local_config = load_config()
# set the terminal title
title = 'rtv {0}'.format(__version__)
if os.name == 'nt':
os.system('title {0}'.format(title))
else:
sys.stdout.write("\x1b]2;{0}\x07".format(title))
# Fill in empty arguments with config file values. Paramaters explicitly
# typed on the command line will take priority over config file params.
for key, val in local_config.items():

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/__init__.cpython-34.pyc

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/__init__.cpython-34.pyo

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/__main__.cpython-34.pyc

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/__main__.cpython-34.pyo

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/__version__.cpython-34.pyc

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/__version__.cpython-34.pyo

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/config.cpython-34.pyc

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/config.cpython-34.pyo

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/content.cpython-34.pyc

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/content.cpython-34.pyo

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/curses_helpers.cpython-34.pyc

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/curses_helpers.cpython-34.pyo

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/docs.cpython-34.pyc

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/docs.cpython-34.pyo

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/exceptions.cpython-34.pyc

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/exceptions.cpython-34.pyo

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/helpers.cpython-34.pyc

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/helpers.cpython-34.pyo

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/page.cpython-34.pyc

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/page.cpython-34.pyo

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/submission.cpython-34.pyc

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/submission.cpython-34.pyo

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/subreddit.cpython-34.pyc

Binary file not shown.

BIN
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__pycache__/subreddit.cpython-34.pyo

Binary file not shown.

2
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/__version__.py

@ -1 +1 @@ @@ -1 +1 @@
__version__ = '1.1.2'
__version__ = '1.2'

131
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/content.py

@ -3,7 +3,7 @@ import textwrap @@ -3,7 +3,7 @@ import textwrap
import praw
import requests
from .exceptions import SubmissionError, SubredditError
from .exceptions import SubmissionError, SubredditError, AccountError
from .helpers import humanize_timestamp, wrap_text, strip_subreddit_url
__all__ = ['SubredditContent', 'SubmissionContent']
@ -79,6 +79,7 @@ class BaseContent(object): @@ -79,6 +79,7 @@ class BaseContent(object):
flair = comment.author_flair_text
data['flair'] = (flair if flair else '')
data['likes'] = comment.likes
data['gold'] = comment.gilded > 0
return data
@ -107,23 +108,18 @@ class BaseContent(object): @@ -107,23 +108,18 @@ class BaseContent(object):
data['url_full'] = sub.url
data['url'] = ('selfpost' if is_selfpost(sub.url) else sub.url)
data['likes'] = sub.likes
data['gold'] = sub.gilded > 0
return data
class SubmissionContent(BaseContent):
"""
Grab a submission from PRAW and lazily store comments to an internal
list for repeat access.
"""
def __init__(
self,
submission,
loader,
indent_size=2,
max_indent_level=4):
def __init__(self, submission, loader, indent_size=2, max_indent_level=4):
self.indent_size = indent_size
self.max_indent_level = max_indent_level
@ -136,13 +132,7 @@ class SubmissionContent(BaseContent): @@ -136,13 +132,7 @@ class SubmissionContent(BaseContent):
self._comment_data = [self.strip_praw_comment(c) for c in comments]
@classmethod
def from_url(
cls,
reddit,
url,
loader,
indent_size=2,
max_indent_level=4):
def from_url(cls, reddit, url, loader, indent_size=2, max_indent_level=4):
try:
with loader():
@ -163,10 +153,9 @@ class SubmissionContent(BaseContent): @@ -163,10 +153,9 @@ class SubmissionContent(BaseContent):
elif index == -1:
data = self._submission_data
data['split_title'] = textwrap.wrap(data['title'],
width=n_cols -2)
data['split_title'] = textwrap.wrap(data['title'], width=n_cols -2)
data['split_text'] = wrap_text(data['text'], width=n_cols - 2)
data['n_rows'] = len(data['split_title']) + len(data['split_text']) + 5
data['n_rows'] = len(data['split_title'] + data['split_text']) + 5
data['offset'] = 0
else:
@ -231,9 +220,8 @@ class SubmissionContent(BaseContent): @@ -231,9 +220,8 @@ class SubmissionContent(BaseContent):
class SubredditContent(BaseContent):
"""
Grabs a subreddit from PRAW and lazily stores submissions to an internal
Grab a subreddit from PRAW and lazily stores submissions to an internal
list for repeat access.
"""
@ -244,81 +232,78 @@ class SubredditContent(BaseContent): @@ -244,81 +232,78 @@ class SubredditContent(BaseContent):
self._submissions = submissions
self._submission_data = []
# Verify that content exists for the given submission generator.
# This is necessary because PRAW loads submissions lazily, and
# there is is no other way to check things like multireddits that
# don't have a real corresponding subreddit object.
try:
self.get(0)
except (praw.errors.APIException, requests.HTTPError,
praw.errors.RedirectException):
raise SubredditError(display_name)
@classmethod
def from_name(cls, reddit, name, loader, order='hot', search=None):
def from_name(cls, reddit, name, loader, order='hot', query=None):
if name is None:
name = 'front'
if order not in ['hot', 'top', 'rising', 'new', 'controversial']:
raise SubredditError(display_name)
name = name.strip(' /') # Strip leading and trailing backslashes
if name.startswith('r/'):
name = name[2:]
# Grab the display type e.g. "python/new"
# Grab the display order e.g. "python/new"
if '/' in name:
name, order = name.split('/')
if order == 'hot':
display_name = '/r/{}'.format(name)
else:
display_name = '/r/{}/{}'.format(name, order)
if name == 'front':
if search:
submissions = reddit.search(search, None, order)
elif order == 'hot':
submissions = reddit.get_front_page(limit=None)
elif order == 'top':
submissions = reddit.get_top(limit=None)
elif order == 'rising':
submissions = reddit.get_rising(limit=None)
elif order == 'new':
submissions = reddit.get_new(limit=None)
elif order == 'controversial':
submissions = reddit.get_controversial(limit=None)
else:
raise SubredditError(display_name)
else:
subreddit = reddit.get_subreddit(name)
if search:
submissions = reddit.search(search, name, order)
elif order == 'hot':
submissions = subreddit.get_hot(limit=None)
elif order == 'top':
submissions = subreddit.get_top(limit=None)
elif order == 'rising':
submissions = subreddit.get_rising(limit=None)
elif order == 'new':
submissions = subreddit.get_new(limit=None)
elif order == 'controversial':
submissions = subreddit.get_controversial(limit=None)
display_name = display_name = '/r/{}'.format(name)
if order != 'hot':
display_name += '/{}'.format(order)
if name == 'me':
if not reddit.is_logged_in():
raise AccountError
else:
raise SubredditError(display_name)
submissions = reddit.user.get_submitted(sort=order)
# Verify that content exists for the given submission generator.
# This is necessary because PRAW loads submissions lazily, and
# there is is no other way to check things like multireddits that
# don't have a real corresponding subreddit object.
content = cls(display_name, submissions, loader)
try:
content.get(0)
except (praw.errors.APIException, requests.HTTPError,
praw.errors.RedirectException):
raise SubredditError(display_name)
elif query:
if name == 'front':
submissions = reddit.search(query, subreddit=None, sort=order)
else:
submissions = reddit.search(query, subreddit=name, sort=order)
return content
else:
if name == 'front':
dispatch = {
'hot': reddit.get_front_page,
'top': reddit.get_top,
'rising': reddit.get_rising,
'new': reddit.get_new,
'controversial': reddit.get_controversial,
}
else:
subreddit = reddit.get_subreddit(name)
dispatch = {
'hot': subreddit.get_hot,
'top': subreddit.get_top,
'rising': subreddit.get_rising,
'new': subreddit.get_new,
'controversial': subreddit.get_controversial,
}
submissions = dispatch[order](limit=None)
return cls(display_name, submissions, loader)
def get(self, index, n_cols=70):
"""
Grab the `i`th submission, with the title field formatted to fit inside
of a window of width `n`
of a window of width `n_cols`
"""
if index < 0:
raise IndexError
while index >= len(self._submission_data):
try:
with self._loader():
submission = next(self._submissions)
@ -334,4 +319,4 @@ class SubredditContent(BaseContent): @@ -334,4 +319,4 @@ class SubredditContent(BaseContent):
data['n_rows'] = len(data['split_title']) + 3
data['offset'] = 0
return data
return data

18
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/curses_helpers.py

@ -22,6 +22,7 @@ ESCAPE = 27 @@ -22,6 +22,7 @@ ESCAPE = 27
UARROW = u'\u25b2'.encode('utf-8')
DARROW = u'\u25bc'.encode('utf-8')
BULLET = u'\u2022'.encode('utf-8')
GOLD = u'\u272A'.encode('utf-8')
def show_notification(stdscr, message):
@ -37,10 +38,10 @@ def show_notification(stdscr, message): @@ -37,10 +38,10 @@ def show_notification(stdscr, message):
box_width = max(map(len, message)) + 2
box_height = len(message) + 2
# Make sure the window is large enough to fit the message
if (box_width > n_cols) or (box_height > n_rows):
curses.flash()
return
# Cut off the lines of the message that don't fit on the screen
box_width = min(box_width, n_cols)
box_height = min(box_height, n_rows)
message = message[:box_height-2]
s_row = (n_rows - box_height) // 2
s_col = (n_cols - box_width) // 2
@ -50,20 +51,23 @@ def show_notification(stdscr, message): @@ -50,20 +51,23 @@ def show_notification(stdscr, message):
window.border()
for index, line in enumerate(message, start=1):
window.addstr(index, 1, line)
window.addnstr(index, 1, line, box_width - 2)
window.refresh()
stdscr.getch()
ch = stdscr.getch()
window.clear()
window = None
stdscr.refresh()
return ch
def show_help(stdscr):
"""
Overlay a message box with the help screen.
"""
show_notification(stdscr, HELP.split("\n"))
show_notification(stdscr, HELP.splitlines())
class LoadScreen(object):

25
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/docs.py

@ -1,8 +1,11 @@ @@ -1,8 +1,11 @@
from .__version__ import __version__
__all__ = ['AGENT', 'SUMMARY', 'AUTH', 'CONTROLS', 'HELP']
__all__ = ['AGENT', 'SUMMARY', 'AUTH', 'CONTROLS', 'HELP', 'COMMENT_FILE',
'SUBMISSION_FILE']
AGENT = "desktop:https://github.com/michael-lazar/rtv:{} (by /u/civilization_phaze_3)".format(__version__)
AGENT = """\
desktop:https://github.com/michael-lazar/rtv:{} (by /u/civilization_phaze_3)\
""".format(__version__)
SUMMARY = """
Reddit Terminal Viewer is a lightweight browser for www.reddit.com built into a
@ -28,20 +31,22 @@ HELP = """ @@ -28,20 +31,22 @@ HELP = """
Global Commands
`UP/DOWN` or `j/k` : Scroll to the prev/next item
`a/z` : Upvote/downvote the selected item
`r` : Refresh the current page
`q` : Quit the program
`ENTER` or `o` : Open the selected item in the default web browser
`r` : Refresh the current page
`u` : Login/logout of your user account
`?` : Show this help message
`q` : Quit the program
Subreddit Mode
`RIGHT` or `l` : View comments for the selected submission
`/` : Open a prompt to switch subreddits
`f` : Open a prompt to search the current subreddit
`p` : Post a new submission to the current subreddit
Submission Mode
`LEFT` or `h` : Return to subreddit mode
`RIGHT` or `l` : Fold the selected comment, or load additional comments
`c` : Comment/reply on the selected item
`c` : Post a new comment on the selected item
"""
COMMENT_FILE = """
@ -51,3 +56,13 @@ COMMENT_FILE = """ @@ -51,3 +56,13 @@ COMMENT_FILE = """
# Replying to {author}'s {type}
{content}
"""
SUBMISSION_FILE = """
# Please enter your submission. Lines starting with '#' will be ignored,
# and an empty field aborts the submission.
#
# The first line will be interpreted as the title
# The following lines will be interpreted as the content
#
# Posting to /r/{name}
"""

28
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/exceptions.py

@ -1,23 +1,31 @@ @@ -1,23 +1,31 @@
class SubmissionError(Exception):
"""Submission could not be loaded"""
class EscapeInterrupt(Exception):
"Signal that the ESC key has been pressed"
class RTVError(Exception):
"Base RTV error class"
class AccountError(RTVError):
"Could not access user account"
class SubmissionError(RTVError):
"Submission could not be loaded"
def __init__(self, url):
self.url = url
class SubredditError(Exception):
"""Subreddit could not be reached"""
class SubredditError(RTVError):
"Subreddit could not be reached"
def __init__(self, name):
self.name = name
class ProgramError(Exception):
"""Problem executing an external program"""
class ProgramError(RTVError):
"Problem executing an external program"
def __init__(self, name):
self.name = name
class EscapeInterrupt(Exception):
"""Signal that the ESC key has been pressed"""

72
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/page.py

@ -6,12 +6,12 @@ import praw.errors @@ -6,12 +6,12 @@ import praw.errors
from .helpers import clean
from .curses_helpers import Color, show_notification, show_help, text_input
from .docs import AGENT
__all__ = ['Navigator']
class Navigator(object):
"""
Handles math behind cursor movement and screen paging.
"""
@ -86,6 +86,7 @@ class Navigator(object): @@ -86,6 +86,7 @@ class Navigator(object):
def flip(self, n_windows):
"Flip the orientation of the page"
self.page_index += (self.step * n_windows)
self.cursor_index = n_windows
self.inverted = not self.inverted
@ -102,7 +103,6 @@ class Navigator(object): @@ -102,7 +103,6 @@ class Navigator(object):
class BaseController(object):
"""
Event handler for triggering functions with curses keypresses.
@ -152,7 +152,6 @@ class BaseController(object): @@ -152,7 +152,6 @@ class BaseController(object):
class BasePage(object):
"""
Base terminal viewer incorperates a cursor to navigate content
"""
@ -177,7 +176,7 @@ class BasePage(object): @@ -177,7 +176,7 @@ class BasePage(object):
@BaseController.register('?')
def help(self):
show_help(self.stdscr)
show_help(self._content_window)
@BaseController.register(curses.KEY_UP, 'k')
def move_cursor_up(self):
@ -191,6 +190,7 @@ class BasePage(object): @@ -191,6 +190,7 @@ class BasePage(object):
def clear_input_queue(self):
"Clear excessive input caused by the scroll wheel or holding down a key"
self.stdscr.nodelay(1)
while self.stdscr.getch() != -1:
continue
@ -209,7 +209,7 @@ class BasePage(object): @@ -209,7 +209,7 @@ class BasePage(object):
data['object'].upvote()
data['likes'] = True
except praw.errors.LoginOrScopeRequired:
show_notification(self.stdscr, ['Login to vote'])
show_notification(self.stdscr, ['Not logged in'])
@BaseController.register('z')
def downvote(self):
@ -224,19 +224,61 @@ class BasePage(object): @@ -224,19 +224,61 @@ class BasePage(object):
data['object'].downvote()
data['likes'] = False
except praw.errors.LoginOrScopeRequired:
show_notification(self.stdscr, ['Login to vote'])
show_notification(self.stdscr, ['Not logged in'])
@BaseController.register('u')
def login(self):
"""
Prompt to log into the user's account, or log out of the current
account.
"""
if self.reddit.is_logged_in():
self.logout()
return
username = self.prompt_input('Enter username:')
password = self.prompt_input('Enter password:', hide=True)
if not username or not password:
curses.flash()
return
try:
with self.loader():
self.reddit.login(username, password)
except praw.errors.InvalidUserPass:
show_notification(self.stdscr, ['Invalid user/pass'])
else:
show_notification(self.stdscr, ['Welcome {}'.format(username)])
def logout(self):
"Prompt to log out of the user's account."
ch = self.prompt_input("Log out? (y/n):")
if ch == 'y':
self.reddit.clear_authentication()
show_notification(self.stdscr, ['Logged out'])
elif ch != 'n':
curses.flash()
def prompt_input(self, prompt, hide=False):
"Prompt the user for input"
def prompt_input(self, prompt):
"""Prompt the user for input"""
attr = curses.A_BOLD | Color.CYAN
n_rows, n_cols = self.stdscr.getmaxyx()
self.stdscr.addstr(n_rows - 1, 0, prompt, attr)
self.stdscr.refresh()
window = self.stdscr.derwin(1, n_cols - len(prompt),
n_rows - 1, len(prompt))
window.attrset(attr)
out = text_input(window)
if hide:
prompt += ' ' * (n_cols - len(prompt) - 1)
self.stdscr.addstr(n_rows-1, 0, prompt, attr)
out = self.stdscr.getstr(n_rows-1, 1)
else:
self.stdscr.addstr(n_rows - 1, 0, prompt, attr)
self.stdscr.refresh()
window = self.stdscr.derwin(1, n_cols - len(prompt),
n_rows - 1, len(prompt))
window.attrset(attr)
out = text_input(window)
return out
def draw(self):
@ -354,4 +396,4 @@ class BasePage(object): @@ -354,4 +396,4 @@ class BasePage(object):
for row in range(n_rows):
window.chgat(row, 0, 1, attribute)
window.refresh()
window.refresh()

79
rtv-git/pkg/rtv-git/usr/lib/python3.4/site-packages/rtv/submission.py

@ -1,18 +1,20 @@ @@ -1,18 +1,20 @@
import curses
import sys
import time
import logging
import praw.errors
from .content import SubmissionContent
from .page import BasePage, Navigator, BaseController
from .helpers import clean, open_browser, open_editor
from .curses_helpers import (BULLET, UARROW, DARROW, Color, LoadScreen,
from .curses_helpers import (BULLET, UARROW, DARROW, GOLD, Color, LoadScreen,
show_notification, text_input)
from .docs import COMMENT_FILE
__all__ = ['SubmissionController', 'SubmissionPage']
_logger = logging.getLogger(__name__)
class SubmissionController(BaseController):
character_map = {}
@ -24,17 +26,19 @@ class SubmissionPage(BasePage): @@ -24,17 +26,19 @@ class SubmissionPage(BasePage):
self.controller = SubmissionController(self)
self.loader = LoadScreen(stdscr)
if url is not None:
if url:
content = SubmissionContent.from_url(reddit, url, self.loader)
elif submission is not None:
elif submission:
content = SubmissionContent(submission, self.loader)
else:
raise ValueError('Must specify url or submission')
super(SubmissionPage, self).__init__(stdscr, reddit, content,
page_index=-1)
super(SubmissionPage, self).__init__(stdscr, reddit,
content, page_index=-1)
def loop(self):
"Main control loop"
self.active = True
while self.active:
self.draw()
@ -43,6 +47,8 @@ class SubmissionPage(BasePage): @@ -43,6 +47,8 @@ class SubmissionPage(BasePage):
@SubmissionController.register(curses.KEY_RIGHT, 'l')
def toggle_comment(self):
"Toggle the selected comment tree between visible and hidden"
current_index = self.nav.absolute_index
self.content.toggle(current_index)
if self.nav.inverted:
@ -53,20 +59,24 @@ class SubmissionPage(BasePage): @@ -53,20 +59,24 @@ class SubmissionPage(BasePage):
@SubmissionController.register(curses.KEY_LEFT, 'h')
def exit_submission(self):
"Close the submission and return to the subreddit page"
self.active = False
@SubmissionController.register(curses.KEY_F5, 'r')
def refresh_content(self):
url = self.content.name
"Re-download comments reset the page index"
self.content = SubmissionContent.from_url(
self.reddit,
url,
self.content.name,
self.loader)
self.nav = Navigator(self.content.get, page_index=-1)
@SubmissionController.register(curses.KEY_ENTER, 10, 'o')