]> git.sven.stormbind.net Git - sven/java-package.git/blobdiff - lib/common.sh
Changed the section of the documentation packages to non-free/doc
[sven/java-package.git] / lib / common.sh
index ec105313bd8c662b44b30827830b64b0b5c20828..73d729f0e4a14d7d0e103754e8ec8fd867618d19 100644 (file)
@@ -18,7 +18,7 @@ read_yn() {
 # diskusage <path>: prints size in MB
 diskusage() {
     local path="$1"
-    read size dummy < <( du -sm "$path" )
+    read size dummy < <( du -sm --apparent-size "$path" )
     echo "$size"
 }
 
@@ -195,7 +195,7 @@ get_architecture() {
 
 # get browser plugin directories
 get_browser_plugin_dirs() {
-    if [ $(lsb_release --id --short) = Ubuntu ]; then
+    if dpkg-vendor --derives-from Ubuntu; then
         export browser_plugin_dirs="xulrunner-addons firefox iceape iceweasel mozilla midbrowser xulrunner"
     else
         export browser_plugin_dirs=mozilla