diff --git a/debian/control b/debian/control index 8fd023a..69c9eaf 100644 --- a/debian/control +++ b/debian/control @@ -78,7 +78,6 @@ Architecture: all Multi-Arch: foreign Depends: - gist, inxi, python3, python3-gi, diff --git a/files/usr/bin/pastebin b/files/usr/bin/pastebin index 0775e23..1225df3 100755 --- a/files/usr/bin/pastebin +++ b/files/usr/bin/pastebin @@ -22,7 +22,9 @@ content = str_args if content != "": - for paster in ['/usr/bin/gist-paste', '/usr/bin/fpaste']: - if os.path.exists(paster): - p = subprocess.Popen([paster], stdin=subprocess.PIPE) - p.communicate(content.encode("UTF-8")) + if os.path.exists('/usr/bin/fpaste'): + p = subprocess.Popen(['/usr/bin/fpaste'], stdin=subprocess.PIPE) + p.communicate(content.encode("UTF-8")) + else: + p = subprocess.Popen(['nc', 'termbin.com', '9999'], stdin=subprocess.PIPE) + p.communicate(content.encode("UTF-8"))