last day (20 days later) » 

kos
kos
12:59
This is a very good idea.
:D
OK, so, my latest test paste.ubuntu.com/13514297 Multiple URI, multiple releases, everything respected . . . except default case. . . I still don't get it
I'm gonna go smoke and sleep now
Adios
kos
kos
Night @Serg!
kos
kos
14:16
@A.B. Quick test please? This just prints the lines to be added: paste.ubuntu.com/13514867
@kos ok =)
kos
kos
@A.B. Maybe it's easier if you post an input file and an output file, at least we don't bother you every 5 minutes :)
@kos [aboettger@aboettger-VirtualBox:~/tmp] % sudo ./apt-add-update enable security
[aboettger@aboettger-VirtualBox:~/tmp] % cat sources.list

deb http://archive.ubuntu.com/ubuntu wily main
@A.B. I'm here.
@xiaodongjie o/ =)
14:21
my script is the best? :)
I wrote it from scratch.
Or have I used an old version @xiaodongjie
kos
kos
@A.B. ?
% cat sources.list
deb archive.ubuntu.com/ubuntu wily main
% perl script.pl enable backports
deb archive.ubuntu.com/ubuntu wily-backports main #Added by script
(same for security)
o_O
@kos % cat apt-add-update| pastebinit
http://paste.ubuntu.com/13514948/
@kos is this the correct timestamp? Paste from kos at Thu, 26 Nov 2015 14:16:19 +0000
@A.B. I'll be nearest now. because i'm using aptsources module as same as ubuntu software center.
kos
kos
Yes. O.o
This one here
% cat sources.list
deb archive.ubuntu.com/ubuntu wily main
% perl script.pl enable security
deb archive.ubuntu.com/ubuntu wily-security main #Added by script
14:28
@A.B. my script make new lines from empty sources.list.
@kos this timestamp? Paste from kos at Thu, 26 Nov 2015 14:16:19 +0000
kos
kos
@A.B. Yes, that's it
:\
no
output
-_-
the current version: paste.ubuntu.com/13514980
@xiaodongjie new lines is wrong with an empty sources.list
rule 1
yes, let me check rule 1
oh, yes, i see.
will modify soon.
kos
kos
@A.B. I don't understand, one of us is messing up. I just copied and pasted from your last link to a new file, foo.pl, and sources.list (in the same directory) contains this line: deb archive.ubuntu.com/ubuntu wily main
Here's the output:
% cat sources.list
deb archive.ubuntu.com/ubuntu wily main
% perl foo.pl enable security
deb archive.ubuntu.com/ubuntu wily-security main #Added by script
14:34
strange
cat foo.pl | pastebinit
easier than copy and paste
@kos ^^^
kos
kos
Nice, I didn't know about that
Anyway:
% <script.pl pastebinit
paste.ubuntu.com/13515023
% <sources.list pastebinit
paste.ubuntu.com/13515028
@A.B. ^^
@kos but the time stamp is always the same: Paste from kos at Thu, 26 Nov 2015 14:16:19 +0000
@A.B. just have a problem.
your question.
always 14:16:19
please look.
14:43
@xiaodongjie yes?
let's guess that security base uri as "http://a.com"
and
updates base uri is "http://b.com"
kos
kos
@A.B. No! paste.ubuntu.com/13515023 -> timestamp = Thu, 26 Nov 2015 14:36:22 +0000, paste.ubuntu.com/13515028 -> timestamp = Thu, 26 Nov 2015 14:36:35 +0000
then when i apt-add-update enable default
kos
kos
You're messing up :D
Then please explain me about it.
"deb a.com wily main" is good or "deb b.com wily main" is good?
default need to follow security or updates or proposal or backports?
please look the rule 6
14:47
@kos :| your script works with deb archive.ubuntu.com/ubuntu wily main but not with deb http://archive.ubuntu.com/ubuntu wily main
kos
kos
@A.B. Ok, let me see why.
@xiaodongjie nothing of them, follow the repositories
@A.B. there are many repository mirrors. for example, cn.archive.ubuntu.com for china.
and default security url is not archive.ubuntu.com
it's security.ubuntu.com
no, a repository is main, multiverse, universe, restricted
cn.archive.ubuntu.com is part of a URI
a URI like http://archive.ubuntu.com/ubuntu
yes, but archive.ubuntu.com can replaced security.ubuntu.com
actually wily-security uses security.ubuntu.com rather than archive.ubuntu.com
it's made from ubuntu software center.
kos
kos
14:53
@A.B. Fixed, not it works with deb http://..., deb us.... and deb http://us.... : paste.ubuntu.com/13515180
@A.B. please check with your ubunut software center.
little confused.
if i use archive.ubuntu.com for security, it'll work or not?
@xiaodongjie What a crap =(
@A.B. hmm?
@xiaodongjie it works
wow, @A.B. what is the contents of your default sources.list?
can you pastebin it?
14:57
@xiaodongjie default sources.list?
i mean that created from ubuntu software center when you check security.
ok
deb http://security.ubuntu.com/ubuntu/ wily-security multiverse main universe restricted
deb-src http://security.ubuntu.com/ubuntu/ wily-security multiverse main universe restricted #Added by software-properties
kos
kos
15:00
@A.B. Side note, it doesn't work on deb-src yet, so don't bother about that. I didn't add it because it's the same as what it does already, but I want to be sure there are no errors in what I have before continuing, or I'll have to rewrite everything again.
it's yours, @A.B.
third and fourth lines.
there is a problem at third and fourth lines.
@kos, great
looks good
@kos little bug deb http://archive.ubuntu.com/ubuntu wily-default main
kos
kos
@A.B. Ok, It's not the only one, I forgot to check duplicates before writing. Fixing both
Yes, the security thing is stupid :(
@A.B. so how to solve the security lines?
without aptsources api?
15:05
Let's make it easy. Simply ignore the lines with security.ubuntu.com @kos @xiaodongjie @Serg
And how to get default url from the security lines?
@A.B. good.
then change the question please.
But not the repositories for security.ubuntu.com
if there is only one line like
please visit security.ubuntu.com/ubuntu. there are security updates.
deb http://security.ubuntu.com/ubuntu wily main
yes, they are difference.
15:08
apt-add-update enable security should add deb http://security.ubuntu.com/ubuntu wily-security main
yes, right.
and apt-add-update enable default should add deb archive.ubuntu.com/ubuntu wily main.
it's not related to security.
that's correct
And security and updates and so on all related to default.
default is parent and
anothers are all children.
aptsources module is used by Ubuntu Software Center.
enable default should add only … wily …
yes, right.
15:11
If we have deb archive.ubuntu.com/ubuntu wily-updates universe, than deb archive.ubuntu.com/ubuntu wily universe
yes, right.
my script does not work as that?
oh, deb-src may be appended.
one line.
heh
right?
yes, your script appends deb-src. If there is no deb-src, add no deb-src @xiaodongjie
then it's completed?
@xiaodongjie your script?
check each rule @xiaodongjie
15:23
@xiaodongjie Have you checked all rules?
Ok, I have to go. I will check it later. =)
 
2 hours later…
kos
kos
17:24
@A.B. I think I've made it :) I overthought this. But if this is wrong I'm out :D
% <sources.list pastebinit -a kos
paste.ubuntu.com/13516723
% <script.pl pastebinit -a kos -f perl
paste.ubuntu.com/13516726
% perl script.pl enable security | pastebinit -a kos
paste.ubuntu.com/13516731
user@user-X550CL ~/tmp %
#1 sources.list
#2 script.pl
#3 output of `perl script.pl enable security` on `sources.list`
@kos :)
I think that he just sleep now. So we need to wait until he wake up.
To continue the discussion. :)
@kos I'll go to bed, too. see you tomorrow.
kos
kos
@xiaodongjie Hmmm I think he just off. He's in my same time zone (CET), I don't think he sleeps at 18.29 :D
kos
kos
@xiaodongjie Ok! Goodnight then!
:) Did you look my script?
see you later :)
kos
kos
17:35
@xiaodongjie No, not yet, I'll check it now.
Later!
@A.B. By the way it's still a beta, it has everything (chekcs src, URIs, already enabled components) but can't delete (and it can be polished quite a bit, I'll do it if it works).
 
2 hours later…
19:59
Sorry folks. I'm back in 11 hours. At 8am.
 
2 hours later…
21:57
I understand you want to have each URI associated with all the components it has paste.ubuntu.com/13514568 That is a bit difficult to do.
If we have
deb http://it.archive.ubuntu.com/ubuntu wily main
deb http://us.archive.ubuntu.com/ubuntu wily-backports main
deb it.archive.ubuntu.com/ubuntu wily universe
Then what is the expected output ?
Also, what is the purpose of the default ? The default , I understand , should be deb URI and the release, trusty or wily . . . OK, but problem is what if we have default for one URI enabled and then there's one URI that is non default ? My guess is that default will be enabled just for one URI, but that means the URI and the source have to be associated.
It may be possible to do, but I think it's too complex. There's bunch of things to keep associated
Also there is no trusty security for extras !!! Just put extras.ubuntu.com/ubuntu/dists/trusty into your browser and see
22:48
At least the way I see it, #8 requirement is particularly difficult to achieve
I could do this:
xieerqi:$ awk '/^deb.*/ && $0!~/extras/ && $0!~/partner/ { printf $2" "; for(i=4;i<=NF;i++) printf $i" "; printf "\n"}' after | sort -u
security.ubuntu.com/ubuntu main restricted
security.ubuntu.com/ubuntu multiverse
security.ubuntu.com/ubuntu universe
us.archive.ubuntu.com/ubuntu main restricted
us.archive.ubuntu.com/ubuntu main restricted universe multiverse
us.archive.ubuntu.com/ubuntu multiverse
us.archive.ubuntu.com/ubuntu universe
And then just insert wily-security or trusty-backports , or whatever suite is requested

  last day (20 days later) »