Skip to content
Commits on Source (6)
gnumed-server (22.5-1) unstable; urgency=medium
* New upstream version
-- Andreas Tille <tille@debian.org> Sun, 27 Jan 2019 14:09:36 +0100
gnumed-server (22.4-1) unstable; urgency=medium
* New upstream version
* debhelper 12
* Standards-Version: 4.3.0
* Secure URI in copyright format
* Add python3 as Depends since there are some Python3 scripts
* Delete xtest.py which should not be in the package
-- Andreas Tille <tille@debian.org> Mon, 14 Jan 2019 14:46:24 +0100
-- Andreas Tille <tille@debian.org> Mon, 14 Jan 2019 15:16:05 +0100
gnumed-server (22.3-1) unstable; urgency=medium
......
......@@ -18,7 +18,6 @@ Depends: ${misc:Depends},
postgresql (>= 9.2),
postgresql-client,
python,
python3,
debconf,
bsd-mailx | mail-reader,
openssl,
......
......@@ -21,4 +21,4 @@ override_dh_install:
fi \
done
cp -a server/gm-fingerprint_db.py debian/$(DEB_SOURCE)/usr/sbin/gm-fingerprint_db ; \
find debian -name xtest.py -delete
......@@ -112,7 +112,7 @@
<body>
 
<!-- Primary Index -->
<p><br><br>Dumped on 2018-12-19</p>
<p><br><br>Dumped on 2019-01-25</p>
<h1><a name="index">Index of database - gnumed_v22</a></h1>
<ul>
#!/usr/bin/python3
import sys
import pyudev
import psutil
def enumerate_removable_partitions():
removable_partitions = {}
ctxt = pyudev.Context()
removable_devices = [ dev for dev in ctxt.list_devices(subsystem='block', DEVTYPE='disk') if dev.attributes.get('removable') == b'1' ]
all_mounted_partitions = { part.device: part for part in psutil.disk_partitions() }
for device in removable_devices:
partitions_on_removable_device = {
part.device_node: {
'device': part['DEVNAME'],
'vendor': part['ID_VENDOR'],
'model': part['ID_MODEL'],
'fs_label': part['ID_FS_LABEL'],
'is_mounted': False,
'mountpoint': None,
'fs_type': None,
} for part in ctxt.list_devices(subsystem='block', DEVTYPE='partition', parent=device)
}
for part in partitions_on_removable_device:
try:
partitions_on_removable_device[part]['mountpoint'] = all_mounted_partitions[part].mountpoint
partitions_on_removable_device[part]['is_mounted'] = True
partitions_on_removable_device[part]['fs_type'] = all_mounted_partitions[part].fstype
except KeyError:
pass # not mounted
removable_partitions.update(partitions_on_removable_device)
return removable_partitions
parts = enumerate_removable_partitions()
for part_name in parts:
part = parts[part_name]
if part['is_mounted']:
print('mounted:', part)
......@@ -17,8 +17,12 @@ INSERT INTO dem.message_inbox (
) VALUES (
(select pk from dem.staff where db_user = 'any-doc'),
(select pk_type from dem.v_inbox_item_type where type = 'memo' and category = 'administrative'),
'Release Notes for GNUmed 1.7.4 (database v22.4)',
'GNUmed 1.7.4 Release Notes:
'Release Notes for GNUmed 1.7.5 (database v22.5)',
'GNUmed 1.7.5 Release Notes:
1.7.5
FIX: exception on following vaccs reminder from provider inbox
1.7.4
......