Skip to content

Commit 90c5760

Browse files
author
hastmu
committed
fixed pre commit
1 parent 9473048 commit 90c5760

File tree

4 files changed

+23
-26
lines changed

4 files changed

+23
-26
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ it does not matter, it takes the working ones or none (direct connect), where ev
2121
apt-proxy-detect can be used as on clients to detect apt-cacher-ng or squid-deb-proxy in your network.
2222

2323
# Why this is needed?
24-
Spending 2023/2024 time on this topic sound/reads quite strange but up to now
24+
Spending 2023 time on this topic sound/reads quite strange but up to now
2525
i struggle with some problems within the solutions i found so far.
2626

2727
Issues:
@@ -102,14 +102,14 @@ Reading state information... Done
102102

103103
So the quickest way is:
104104
```
105-
curl -s https://raw.githubusercontent.com/hastmu/apt-proxy-detect/refs/heads/@branch@/install.deb.sh | sudo BRANCH=@branch@ bash
105+
curl -s https://raw.githubusercontent.com/hastmu/apt-proxy-detect/refs/heads/release/v1.0.0/install.deb.sh | sudo BRANCH=release/v1.0.0 bash
106106
```
107107

108108
looks like
109109

110110
```
111-
dev@dev~#> curl -s https://raw.githubusercontent.com/hastmu/apt-proxy-detect/refs/heads/@branch@/install.deb.sh | sudo BRANCH=@branch@ bash
112-
- BRANCH [@branch@]
111+
dev@dev~#> curl -s https://raw.githubusercontent.com/hastmu/apt-proxy-detect/refs/heads/release/v1.0.0/install.deb.sh | sudo BRANCH=release/v1.0.0 bash
112+
- BRANCH [release/v1.0.0]
113113
- downloading ... ok.
114114
dpkg-deb: building package 'apt-proxy-detect' in 'apt-proxy-detect_1.0.0_1730626377.deb'.
115115
Reading package lists... Done

README.md.template

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -102,45 +102,42 @@ Reading state information... Done
102102

103103
So the quickest way is:
104104
```
105-
curl -s https://raw.githubusercontent.com/hastmu/apt-proxy-detect/refs/heads/@branch@/install.deb.sh | sudo bash
105+
curl -s https://raw.githubusercontent.com/hastmu/apt-proxy-detect/refs/heads/@branch@/install.deb.sh | sudo BRANCH=@branch@ bash
106106
```
107107

108108
looks like
109109

110110
```
111-
dev@dev~#> curl -s https://raw.githubusercontent.com/hastmu/apt-proxy-detect/refs/heads/@branch@/install.deb.sh | sudo bash
111+
dev@dev~#> curl -s https://raw.githubusercontent.com/hastmu/apt-proxy-detect/refs/heads/@branch@/install.deb.sh | sudo BRANCH=@branch@ bash
112112
- BRANCH [@branch@]
113113
- downloading ... ok.
114-
dpkg-deb: building package 'apt-proxy-detect' in 'apt-proxy-detect_1.0.0_1705676551.deb'.
114+
dpkg-deb: building package 'apt-proxy-detect' in 'apt-proxy-detect_1.0.0_1730626377.deb'.
115115
Reading package lists... Done
116116
Building dependency tree... Done
117117
Reading state information... Done
118-
Note, selecting 'apt-proxy-detect' instead of '/home/dev/apt-proxy-detect_1.0.0_1705676551.deb'
118+
Note, selecting 'apt-proxy-detect' instead of '/root/apt-proxy-detect_1.0.0_1730626377.deb'
119119
The following packages will be upgraded:
120120
apt-proxy-detect
121-
1 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
122-
Need to get 0 B/3.500 B of archives.
121+
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
122+
Need to get 0 B/3604 B of archives.
123123
After this operation, 0 B of additional disk space will be used.
124-
Get:1 /home/dev/apt-proxy-detect_1.0.0_1705676551.deb apt-proxy-detect all 1.0.0-main-1705676551 [3.500 B]
124+
Get:1 /root/apt-proxy-detect_1.0.0_1730626377.deb apt-proxy-detect all 1.0.0-release-v1.0.0-1730626377 [3604 B]
125125
apt-listchanges: Reading changelogs...
126-
(Reading database ... 393385 files and directories currently installed.)
127-
Preparing to unpack .../apt-proxy-detect_1.0.0_1705676551.deb ...
128-
Unpacking apt-proxy-detect (1.0.0-main-1705676551) over (1.0.0-main-1705676340) ...
129-
Setting up apt-proxy-detect (1.0.0-main-1705676551) ...
126+
(Reading database ... 22366 files and directories currently installed.)
127+
Preparing to unpack .../apt-proxy-detect_1.0.0_1730626377.deb ...
128+
Unpacking apt-proxy-detect (1.0.0-release-v1.0.0-1730626377) over (1.0.0-main-1729256401) ...
129+
Setting up apt-proxy-detect (1.0.0-release-v1.0.0-1730626377) ...
130+
N: Download is performed unsandboxed as root as file '/root/apt-proxy-detect_1.0.0_1730626377.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
131+
removed '/root/apt-proxy-detect_1.0.0_1730626377.deb'
130132
Desired=Unknown/Install/Remove/Purge/Hold
131133
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
132134
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
133-
||/ Name Version Architecture Description
134-
+++-================-=====================-============-=================================
135-
ii apt-proxy-detect 1.0.0-main-1705676551 all apt proxy detection
135+
||/ Name Version Architecture Description
136+
+++-================-===============================-============-=================================
137+
ii apt-proxy-detect 1.0.0-release-v1.0.0-1730626377 all apt proxy detection
136138
dev@dev~#>
137139
```
138140

139-
if you like to specify a branch do it like:
140-
```
141-
curl -s https://raw.githubusercontent.com/hastmu/apt-proxy-detect/refs/heads/@branch@/install.deb.sh | sudo BRANCH=@branch@ bash
142-
```
143-
144141
# How does it work?
145142

146143
The apt.conf.d entry makes apt aware of the tool which is then call during "apt update",

install.deb.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

3-
# defaults with branch
4-
echo "- BRANCH [${BRANCH:=@branch@}]"
3+
# defaults
4+
echo "- BRANCH [${BRANCH:=release/v1.0.0}]"
55
NAME="apt-proxy-detect"
66
VERSION="1.0.0"
77
HEADHASH="$(date +%s)"

install.deb.sh.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# defaults
3+
# defaults
44
echo "- BRANCH [${BRANCH:=@branch@}]"
55
NAME="apt-proxy-detect"
66
VERSION="1.0.0"

0 commit comments

Comments
 (0)