Pārlūkot izejas kodu

bin update

84582af
Dirk Alders 2 gadus atpakaļ
vecāks
revīzija
f09d885e7c
4 mainītis faili ar 51 papildinājumiem un 3 dzēšanām
  1. 8
    2
      apt-extend-ubuntu
  2. 39
    0
      findrepos
  3. 2
    0
      requirements.txt
  4. 2
    1
      unittest_status

+ 8
- 2
apt-extend-ubuntu Parādīt failu

@@ -8,17 +8,22 @@ joe git tmux
8 8
 synaptic
9 9
 neofetch
10 10
 sshfs curlftpfs libneon27
11
+openssh-server
12
+nfs-kernel-server
11 13
 keepass2 xdotool
12 14
 tlp tlp-rdw
13 15
 lib32stdc++6
14
-powerline powerline-gitstatus
16
+powerline powerline-gitstatus fonts-powerline
17
+gnome-tweaks chrome-gnome-shell caffeine
15 18
 "
16 19
 
17 20
 
18 21
 MULTIMEDIA="
19 22
 kodi kodi-pvr-hts
20 23
 ubuntu-restricted-extras libdvd-pkg
21
-ardour ubuntustudio-controls calf-plugins eq10q fluid-soundfont-gm fluid-soundfont-gs lame
24
+ardour ubuntustudio-controls calf-plugins eq10q fluid-soundfont-gm fluid-soundfont-gs guitarix-ladspa swh-plugins
25
+gxtuner
26
+lame
22 27
 "
23 28
 
24 29
 
@@ -34,6 +39,7 @@ openscad freecad
34 39
 
35 40
 PROGRAMMING="
36 41
 arduino
42
+minicom
37 43
 virtualenv
38 44
 libgtk-3-dev
39 45
 python3-pip

+ 39
- 0
findrepos Parādīt failu

@@ -0,0 +1,39 @@
1
+#!/home/dirk/bin/venv/bin/python
2
+# -*- coding: UTF-8 -*-
3
+
4
+import optparse
5
+import os
6
+
7
+repolist = []
8
+
9
+
10
+def findrepos(p, **kwargs):
11
+    depth = kwargs.get('depth', 0)
12
+    max_depth = kwargs.get('max_depth')
13
+    ld = os.listdir(p)
14
+    if '.git' in ld:
15
+        if os.path.isdir(os.path.join(p, '.git')):
16
+            repolist.append(p)
17
+            return
18
+    else:
19
+        for entry in ld:
20
+            np = os.path.join(p, entry)
21
+            if os.path.isdir(np):
22
+                findrepos(np, depth=depth+1, max_depth=max_depth)
23
+
24
+
25
+if __name__ == "__main__":
26
+    parser = optparse.OptionParser("usage: %%prog target_path [opions]")
27
+    parser.add_option("-d", "--depth", dest="depth", default=None, type="int", help="Folder depth to search for a repo")
28
+    parser.add_option("-p", "--human-readable", dest="human_readable", action="store_true", default=False, help="Print a human readable list")
29
+    (options, args) = parser.parse_args()
30
+
31
+    if len(args) != 1:
32
+        parser.print_help()
33
+    else:
34
+        findrepos(args[0])
35
+        repolist.sort()
36
+        if options.human_readable:
37
+            print('- ' + '\n- '.join(repolist), '\n')
38
+        else:
39
+            print(' '.join(repolist))

+ 2
- 0
requirements.txt Parādīt failu

@@ -0,0 +1,2 @@
1
+jinja2
2
+distro

+ 2
- 1
unittest_status Parādīt failu

@@ -14,4 +14,5 @@ module_pathes = fstools.dirlist(MY_PATH, rekursive=False)
14 14
 module_pathes.sort()
15 15
 sys.stdout.write(unittest.module_status.module_status_head())
16 16
 for module_path in module_pathes:
17
-    sys.stdout.write(unittest.module_status.module_status_line(module_path))
17
+    if not os.path.basename(module_path) in ['.git', 'eclipse-workspace']:
18
+        sys.stdout.write(unittest.module_status.module_status_line(module_path))

Notiek ielāde…
Atcelt
Saglabāt