Changeset 6999


Ignore:
Timestamp:
Mar 12, 2018, 1:26:53 PM (23 months ago)
Author:
hectorgh
Message:

adding canonical sources.list if it doens't exist

Location:
lliurex-flash-transitional/trunk/fuentes/debian
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-flash-transitional/trunk/fuentes/debian/changelog

    r6996 r6999  
     1lliurex-flash-transitional (0.2) xenial; urgency=high
     2
     3  * Added canonical sources list if it doesn't exist
     4
     5 -- Hector Garcia Huerta <hectorgh@gmail.com>  Mon, 12 Mar 2018 13:14:40 +0100
     6
    17lliurex-flash-transitional (0.1) xenial; urgency=high
    28
  • lliurex-flash-transitional/trunk/fuentes/debian/postinst

    r6995 r6999  
    2222    configure)
    2323
     24        CANONICAL_FILE="/etc/apt/sources.list.d/canonical.list"
    2425        RC=0
    25         dpkg -l adobe-flashplugin 2>/dev/null || RC=1
     26
     27        dpkg -l adobe-flashplugin 1>/dev/null 2>/dev/null || RC=1
    2628
    2729        if [ "$RC" = "0" ]; then
    2830                apt-mark manual adobe-flashplugin || true
     31               
     32                RC_SL=0
     33                rgrep "archive.canonical.com" /etc/apt/sources.list* | grep -e .list: || RC_SL=1
     34
     35                if [ "$RC_SL" = "0" ]; then
     36                        echo "# AUTOMATICALLY ADDED BY LLIUREX-FLASH-TRANSITIONAL" > $CANONICAL_FILE
     37                        echo "deb http://archive.canonical.com/ubuntu xenial partner" >> $CANONICAL_FILE
     38                fi
    2939        fi
    3040
Note: See TracChangeset for help on using the changeset viewer.