Lines 1677-1684
Link Here
|
1677 |
fetched=0 |
1677 |
fetched=0 |
1678 |
|
1678 |
|
1679 |
if not can_fetch: |
1679 |
if not can_fetch: |
1680 |
if fetch != 2: |
1680 |
if fetched != 2: |
1681 |
if fetch == 0: |
1681 |
if fetched == 0: |
1682 |
writemsg("!!! File %s isn't fetched but unable to get it.\n" % myfile) |
1682 |
writemsg("!!! File %s isn't fetched but unable to get it.\n" % myfile) |
1683 |
else: |
1683 |
else: |
1684 |
writemsg("!!! File %s isn't fully fetched, but unable to complete it\n" % myfile) |
1684 |
writemsg("!!! File %s isn't fully fetched, but unable to complete it\n" % myfile) |
Lines 1687-1694
Link Here
|
1687 |
continue |
1687 |
continue |
1688 |
|
1688 |
|
1689 |
# check if we can actually write to the directory/existing file. |
1689 |
# check if we can actually write to the directory/existing file. |
1690 |
if fetched!=2 and not (os.access(mysettings["DISTDIR"],os.W_OK) and |
1690 |
if fetched!=2 and os.path.exists(mysettings["DISTDIR"]+"/"+myfile) != \ |
1691 |
(os.path.exists(mysettings["DISTDIR"]+"/"+myfile) == os.access(mysettings["DISTDIR"]+"/"+myfile, os.W_OK))): |
1691 |
os.access(mysettings["DISTDIR"]+"/"+myfile, os.W_OK): |
1692 |
writemsg(red("***")+" Lack write access to %s, failing fetch\n" % str(mysettings["DISTDIR"]+"/"+myfile)) |
1692 |
writemsg(red("***")+" Lack write access to %s, failing fetch\n" % str(mysettings["DISTDIR"]+"/"+myfile)) |
1693 |
fetched=0 |
1693 |
fetched=0 |
1694 |
break |
1694 |
break |