~pvigo/+junk/linkat-repos-18.04

« back to all changes in this revision

Viewing changes to debian/patches/6

  • Committer: Pablo Vigo
  • Date: 2018-08-31 11:51:46 UTC
  • Revision ID: pvigo@xtec.cat-20180831115146-lsxgdl4i957agbqi
6: firstflag

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: <short summary of the patch>
 
2
 TODO: Put a short summary on the line above and replace this paragraph
 
3
 with a longer explanation of this change. Complete the meta-information
 
4
 with other relevant fields (see below for details). To make it easier, the
 
5
 information below has been extracted from the changelog. Adjust it or drop
 
6
 it.
 
7
 .
 
8
 linkat-repos (18.04-6) bionic; urgency=medium
 
9
 .
 
10
   * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
 
11
Author: Pablo Vigo <pvigo@xtec.cat>
 
12
 
 
13
---
 
14
The information above should follow the Patch Tagging Guidelines, please
 
15
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
 
16
are templates for supplementary fields that you might want to add:
 
17
 
 
18
Origin: <vendor|upstream|other>, <url of original patch>
 
19
Bug: <url in upstream bugtracker>
 
20
Bug-Debian: https://bugs.debian.org/<bugnumber>
 
21
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
 
22
Forwarded: <no|not-needed|url proving that it has been forwarded>
 
23
Reviewed-By: <name and email of someone who approved the patch>
 
24
Last-Update: 2018-08-31
 
25
 
 
26
--- linkat-repos-18.04.orig/linkat-repos.sh
 
27
+++ linkat-repos-18.04/linkat-repos.sh
 
28
@@ -8,6 +8,17 @@ id | egrep adm > /dev/null 2>&1
 
29
 if [ $? -eq 0 ]; then
 
30
 
 
31
 apt-cache policy | egrep linkat > /dev/null 2>&1
 
32
+if [ $? -gt 0 ] && [ ! -f /usr/share/linkat/linkat-repos/firstflag ] ; then
 
33
+       cd $TMP
 
34
+       wget http://download-linkat.xtec.cat/distribution/linkat-edu-$DISTRIB_RELEASE/linkat-repo-$DISTRIB_RELEASE.list
 
35
+       wget http://download-linkat.xtec.cat/distribution/linkat-edu-$DISTRIB_RELEASE/pubkey-linkat.gpg
 
36
+       apt-key add pubkey-linkat.gpg
 
37
+       mv linkat-repo* /etc/apt/sources.list.d/
 
38
+       apt-get update
 
39
+        touch /usr/share/linkat/linkat-repos/firstflag
 
40
+fi
 
41
+
 
42
+apt-cache policy | egrep linkat > /dev/null 2>&1
 
43
 if [ $? -gt 0 ] && [ ! -f /usr/share/linkat/linkat-repos/repoflag ] ; then
 
44
        zenity --question --title "Repositoris de la Linkat" --text "No teniu els repositoris de la Linkat configurats. \n\nVoleu afegir-los ara?"
 
45
        if [ "$?" -eq 0 ]; then